{{extend 'nwc/layout.html'}} {{=form.custom.begin}}
{{is_mobile=request.user_agent().is_mobile}}
{{if form.formname!='trans/create' and response.transtype_name=='cash':}} {{else:}} {{pass}}
{{=response.state_ico}}
{{=form.custom.label.transnumber}}{{=response.transnumber_post}}
{{=form.custom.widget.transnumber}}
{{=form.custom.label.ref_transnumber}}
{{=response.trans_transnumber}}{{=response.ref_transnumber}}{{=response.trans_id}} {{=response.transref_change}}
{{=form.custom.label.transtate}}
{{=form.custom.widget.transtate}}{{=response.transtype}}{{=response.cruser_id}}{{=response.direction_id}}
{{if response.transtype_name=='cash':}} {{else:}} {{pass}}
{{=form.custom.label.crdate}}
{{=form.custom.widget.crdate}}{{=response.crdate}}
{{=form.custom.label.direction}}
{{=form.custom.widget.direction}}
{{=form.custom.label.transdate}}
{{=form.custom.widget.transdate}}
{{=form.custom.label.place_id}}
{{if response.cmd_place:}} {{pass}}
{{=response.place_control}}{{=response.place_id}}{{=response.transdate}} {{=response.place_curr}} {{=response.cmd_place}}
{{=response.cmd_next}}
{{=response.cmd_prev}}
{{=form.custom.label.transdate}}
{{=form.custom.widget.transdate}}
{{=response.label_paidamount}}
{{=response.paidamount}}
{{=form.custom.label.employee_id}}
{{=response.employee_control}} {{=response.employee_id}}
{{=form.custom.label.notes}}
{{=form.custom.label.intnotes}}
{{=form.custom.widget.notes}} {{=form.custom.widget.intnotes}}
{{=form.custom.end}} {{if form.formname!='trans/create':}}
{{if response.transtype_name=='bank':}}
{{=T('Expense')}}
{{=response.expense}}
{{=T('Income')}}
{{=response.income}}
{{=T('Balance')}}
{{=response.balance}}
{{=response.payment_form.custom.begin}}
{{=T('ITEM')}} {{=response.transnumber}} {{=response.cmd_payment_update}} {{=response.cmd_help}} {{=response.cmd_payment_cancel}}
000000{{=response.payment_id}}{{=response.payment_trans_id}}
{{=response.payment_form.custom.label.paiddate}}
{{=response.payment_form.custom.widget.paiddate}}
{{=response.payment_form.custom.label.amount}}
{{=response.payment_form.custom.widget.amount}}
{{=response.payment_form.custom.label.notes}}
{{=response.payment_form.custom.widget.notes}}
{{=response.payment_form.custom.end}}
{{=response.view_payment}}
{{pass}}
{{if response.cmd_fields:}} {{pass}}
{{=response.cmd_fields}} {{if response.cmb_fields:}}
{{=T('Additional Data')}}
{{else:}}
{{pass}}
{{=response.cmb_fields}}
{{=response.cmd_groups_add}} {{=response.cmd_groups}} {{=T('Transaction Groups')}}
{{=response.fieldvalue_form.custom.begin}}
{{=T('FIELD')}} {{=response.transnumber}} {{=response.cmd_fieldvalue_update}} {{=response.cmd_help}} {{=response.cmd_fieldvalue_cancel}}
{{=response.fieldvalue_customer_selector}} {{=response.fieldvalue_tool_selector}} {{=response.fieldvalue_product_selector}} {{=response.fieldvalue_transitem_selector}} {{=response.fieldvalue_transpayment_selector}} {{=response.fieldvalue_transmovement_selector}} {{=response.fieldvalue_project_selector}} {{=response.fieldvalue_employee_selector}} {{=response.fieldvalue_place_selector}}
{{=response.fieldvalue_form.custom.label.notes}}
{{=response.fieldvalue_form.custom.widget.notes}}
{{=response.fieldvalue_id}} {{=response.fieldvalue_ref_id}} {{=response.fieldvalue_fieldname}} {{=response.fieldvalue_fieldtype}} {{=response.fieldvalue_readonly}} {{=response.fieldvalue_form.custom.end}}
{{=response.view_fields}}
{{=response.cmb_groups}}
{{=response.view_trans_groups}}
{{if not response.invoice_disabled:}}
{{=response.view_link_invoice}}
{{pass}}
{{pass}}