{{extend 'nmc/layout.html'}} {{block header}} {{=response.cmd_menu}} {{if form.formname!='trans/create':}}

{{=response.subtitle}}

{{=response.transnumber}}

{{else:}}

{{=response.subtitle}}

{{pass}} {{=response.cmd_commands}} {{end}} {{=response.active_page}}
{{=form.custom.begin}} {{if response.transtype_name!="receipt":}} {{pass}} {{if response.transtype_name=='worksheet':}} {{pass}} {{if response.transtype_name=='rent':}} {{pass}}
{{=response.state_ico}}
{{=form.custom.label.transnumber}}{{=response.transnumber_post}}
{{=form.custom.widget.transnumber}}
{{=response.transref_change}}
{{=form.custom.label.ref_transnumber}}
{{=response.trans_transnumber}}{{=response.ref_transnumber}}{{=response.trans_id}} {{=response.direction_id}}{{=response.cruser_id}}{{=response.transtype}}

{{=form.custom.label.crdate}}
{{=form.custom.label.transdate}}
{{=form.custom.widget.crdate}}{{=response.crdate}} {{=form.custom.widget.transdate}}
{{=form.custom.label.duedate}}
{{=form.custom.widget.duedate}}

{{=form.custom.label.customer_id}}
{{=response.customer_control}}{{=response.customer_id}}

{{=response.trans_wsdistance_label}}
{{=response.trans_wsrepair_label}}
{{=response.trans_wsdistance_data}} {{=response.trans_wsrepair_data}}
{{=response.trans_wstotal_label}}
{{=response.trans_wsnote_label}}
{{=response.trans_wstotal_data}} {{=response.trans_wsnote_data}}

{{=response.trans_reholiday_label}}
{{=response.trans_rebadtool_label}}
{{=response.trans_reholiday_data}} {{=response.trans_rebadtool_data}}
{{=response.trans_reother_label}}
{{=response.trans_rentnote_label}}
{{=response.trans_reother_data}} {{=response.trans_rentnote_data}}

{{=form.custom.label.curr}}
{{=form.custom.widget.curr}}
{{=form.custom.label.acrate}}
{{=form.custom.widget.acrate}}
{{=form.custom.label.paidtype}}
{{=form.custom.widget.paidtype}}
{{=form.custom.label.department}}
{{=form.custom.widget.department}}

{{=form.custom.label.employee_id}}
{{=response.employee_control}}{{=response.employee_id}}
{{=form.custom.label.project_id}}
{{=response.project_control}}{{=response.project_id}}

{{=form.custom.label.notes}}
{{=form.custom.label.transtate}}
{{=form.custom.widget.transtate}}
{{=form.custom.widget.notes}}
{{=form.custom.label.intnotes}}
{{=form.custom.widget.intnotes}}
{{=form.custom.end}}
{{if form.formname!='trans/create':}} {{if response.transtype_name=='invoice' and not response.payment_disabled:}} {{pass}} {{if response.transtype_name in('order','worksheet','rent') and not response.invoice_disabled:}} {{pass}} {{if response.transtype_name in('order','worksheet','rent') and not response.inventory_disabled:}} {{pass}} {{if response.transtype_name in('order','worksheet','rent','invoice') and not response.movement_disabled:}} {{pass}} {{pass}}
{{=response.cmd_back}} {{=response.cmd_close}}

{{=response.cmd_prev}} {{=response.cmd_next}}
{{=form.custom.submit}} {{if form.formname!='trans/create':}} {{=response.cmd_report}} {{=response.cmd_more}} {{=response.cmd_item_total}} {{pass}}
{{if form.formname!='trans/create':}} {{if response.transtype_name=='invoice' and not response.payment_disabled:}} {{pass}} {{if response.transtype_name in('order','worksheet','rent') and not response.invoice_disabled:}} {{pass}} {{if response.transtype_name in('order','worksheet','rent') and not response.inventory_disabled:}} {{pass}} {{if response.transtype_name in('order','worksheet','rent','invoice') and not response.movement_disabled:}} {{pass}} {{pass}}
{{=response.menu_trans}} {{=response.menu_groups}} {{=response.menu_item}} {{=response.menu_fields}} {{if response.transtype_name=='invoice' and not response.payment_disabled:}} {{=response.menu_link_payment}} {{pass}} {{if response.transtype_name in('order','worksheet','rent') and not response.invoice_disabled:}} {{=response.menu_invoice}} {{pass}} {{if response.transtype_name in('order','worksheet','rent') and not response.inventory_disabled:}} {{=response.menu_inventory}} {{pass}} {{if response.transtype_name in('order','worksheet','rent','invoice') and not response.movement_disabled:}} {{=response.menu_tool}} {{pass}}