{{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=='cash':}} {{else:}} {{pass}} {{if response.transtype_name=='cash':}} {{else:}} {{pass}} {{if form.formname!='trans/create' and response.transtype_name=='cash':}} {{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.direction}}
{{=form.custom.label.transdate}}
{{=form.custom.label.crdate}}
{{=form.custom.widget.direction}}{{=form.custom.widget.transdate}}{{=form.custom.widget.crdate}}{{=response.crdate}}
{{=form.custom.label.place_id}}
{{=response.place_curr}}
{{=response.place_control}}{{=response.place_id}}{{=response.transdate}}

{{=form.custom.label.transdate}}
{{=response.label_paidamount}}
{{=form.custom.widget.transdate}} {{=response.paidamount}}
{{=form.custom.label.employee_id}}
{{=response.employee_control}}{{=response.employee_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=='bank':}} {{pass}} {{if not response.invoice_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}} {{if response.transtype_name=='bank':}} {{=response.cmd_payment_total}} {{pass}} {{pass}}
{{if form.formname!='trans/create':}} {{if not response.invoice_disabled:}} {{pass}} {{pass}}
{{=response.menu_trans}} {{=response.menu_groups}} {{if response.transtype_name=='bank':}} {{=response.menu_payment}} {{pass}} {{=response.menu_fields}} {{if not response.invoice_disabled:}} {{=response.menu_link_invoice}} {{pass}}