[% PROCESS 'elements.html' %]
[% text('Search Asset') %]
[% PROCESS input element_data = { type = "hidden" name = "id" value = asset.id } %] [% FOREACH a_class IN asset_classes -%] [% PROCESS input element_data = { type = "hidden", name = "asset_account_default_$a_class.id", value = a_class.asset_account_id, } %] [% PROCESS input element_data = { type = "hidden", name = "dep_account_default_$a_class.id", value = a_class.dep_account_id, } %] [%- END # For a_class %] [% PROCESS input element_data = { type = "hidden" name = "last_class_id" value = asset.asset_class } %]
[% PROCESS input element_data = { type = "text" class = "control_code" name = "tag" value = asset.tag label = text('Tag:') size = 32 } %]
[% PROCESS select element_data = { name = "asset_class" class = "class" options = asset.asset_classes default_values = [asset.asset_class_id] text_attr = "label" value_attr = "id" label = text("Asset Class:") #' default_blank = 1 } %]
[% PROCESS input element_data = { label = text("Description:") name = "description" class = "description" value = asset.description type = "text" } %]
[% PROCESS input element_data = { label = text("Purchase Date:") #' name = "purchase_date" class = "date" value = asset.purchase_date type = "text" size = 12 } %] [% PROCESS input element_data = { label = text("Purchase Value:") #' name = "purchase_value" class = "money" value = asset.purchase_value type = "text" size = 16 } %]
[% PROCESS input element_data = { label = text("Usable Life") #' name = "usable_life" value = asset.usable_life type = "text" size = 10 } %] [% PROCESS input element_data = { label = text("Salvage Value:") #' name = "salvage_value" class = "money" value = asset.salvage_value type = "text" size = 16 } %]
[% PROCESS input element_data = { label = text("Depreciation Starts") #' name = "start_depreciation" value = asset.start_depreciation type = "text" size = 12 class = "date" } %]
[% PROCESS select element_data = { name = "warehouse_id" options = asset.locations value_attr = "id" text_attr = "description" default_values = [asset.warehouse_id] label = text('Location') default_blank = 1 } %] [% PROCESS select element_data = { name = "department_id" options = asset.departments value_attr = "id" text_attr = "description" default_values = [asset.department_id] label = text('Department') default_blank = 1 } %]
[% PROCESS select element_data = { label = text('Asset Account') #' options = asset.asset_accounts name = "asset_account_id" default_values = [asset.asset_account_id] value_attr = 'id' text_attr = 'text' default_blank = 1 } %] [% PROCESS select element_data = { label = text('Depreciation Account') #' options = asset.dep_accounts name = "dep_account_id" default_values = [asset.dep_account_id] value_attr = 'id' text_attr = 'text' default_blank = 1 } %]
[% PROCESS input element_data = { label = text('Vendor Number') #' type = "text" class = "identifier" size = 20 value = asset.meta_number name = "meta_number" } %] [% PROCESS input element_data = { label = text('Invoice Number') #' type = "text" class = "identifier" size = 20 value = asset.invnumber name = "invnumber" } %]
[% PROCESS button element_data = { text = text("Search") type = "submit" class = "submit" name = "__action" value = "asset_results" } %]