{{extend 'nwc/layout.html'}} {{=form.custom.begin}}
{{is_mobile=request.user_agent().is_mobile}}
{{if response.transtype_name=="waybill":}} {{elif response.transtype_name in("production","formula"):}} {{else:}} {{pass}}
{{=response.state_ico}}
{{=form.custom.label.transnumber}}
{{=form.custom.widget.transnumber}}
{{=form.custom.label.crdate}}
{{=form.custom.widget.crdate}}{{=response.crdate}}{{=response.transdate}}
{{=form.custom.label.direction}}
{{=form.custom.widget.direction}}{{=response.direction_id}}
{{=T('Ref. type')}}
{{=response.reftype}}{{=response.refnumber_type}}
{{=T('Reference')}}
{{=response.trans_id}}{{=response.trans_transnumber}} {{=response.customer_id}}{{=response.customer_custname}} {{=response.employee_id}}{{=response.employee_empnumber}}
{{=form.custom.label.transtate}}
{{=form.custom.widget.transtate}}{{=response.transtype}}{{=response.cruser_id}}
{{=response.cmd_next}}
{{=response.cmd_prev}}
{{=response.state_ico}}
{{=form.custom.label.transnumber}}
{{=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 =="production":}}
{{=form.custom.label.crdate}}
{{=form.custom.widget.crdate}}{{=response.crdate}}
{{=form.custom.label.transdate}}
{{=form.custom.widget.transdate}}
{{=form.custom.label.duedate}}
{{=form.custom.widget.duedate}}
{{=T("Formula")}}
{{=response.cmb_formula}} {{=response.cmd_load_formula}}{{=response.production_id}}
{{else:}}
{{=form.custom.label.crdate}}
{{=form.custom.widget.crdate}}{{=response.crdate}}{{=response.transdate}}
{{=response.trans_production_qty_label}}
{{=response.trans_production_qty_data}}
{{=T("Product")}}
{{=response.production_product_selector}}{{=response.production_product_id}}
{{pass}}
{{=response.cmd_next}}
{{=response.cmd_prev}}
{{if not response.direction:}} {{pass}}
{{=response.state_ico}}
{{=form.custom.label.transnumber}}
{{=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}}
{{=form.custom.label.crdate}}
{{=form.custom.widget.crdate}}{{=response.crdate}}
{{=form.custom.label.transdate}}
{{=form.custom.widget.transdate}}{{=response.transdate}}
{{=form.custom.label.place_id}}
{{if response.cmd_place:}} {{pass}}
{{=response.place_control}}{{=response.place_id}} {{=response.cmd_place}}
{{=response.cmd_next}}
{{=response.cmd_prev}}
{{if response.transtype_name=="production":}} {{else:}} {{pass}}
{{=form.custom.label.place_id}}
{{=response.production_place_selector}}{{=response.production_place_id}}
{{=response.trans_production_qty_label}}
{{=response.trans_production_qty_data}}
{{=T("Product")}}
{{=response.production_product_selector}}{{=response.production_product_id}}
{{if response.transtype_name=="production":}} {{else:}} {{pass}}
{{=form.custom.label.notes}}
{{=response.trans_production_batch_label}}
{{=response.trans_production_batch_data}}
{{=form.custom.label.intnotes}}
{{=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 not response.direction and response.transtype_name=="delivery":}}
{{=T('Target warehouse')}}
{{=response.target_place_control}}
{{pass}} {{=response.movement_form.custom.begin}} {{=response.target_place_id}} {{=response.movement_movetype}}
{{=T('ITEM')}} {{=response.transnumber}} {{=response.cmd_movement_update}} {{=response.cmd_help}} {{=response.cmd_movement_cancel}}
{{if response.movement_tool_id:}}
000000{{=response.movement_id}}{{=response.movement_trans_id}}{{=response.movement_qty}}
{{=response.movement_form.custom.label.shippingdate}}
{{=response.movement_form.custom.widget.shippingdate}}
{{=response.movement_form.custom.label.tool_id}}
{{=response.movement_tool_id}}{{=response.movement_serial}}
{{=response.movement_form.custom.label.notes}}
{{=response.movement_form.custom.widget.notes}}
{{else:}} {{if response.transtype_name=="formula":}} {{elif response.transtype_name=="production":}} {{else:}} {{pass}}
000000{{=response.movement_id}}{{=response.movement_trans_id}}
{{=response.movement_form.custom.label.product_id}}
{{=response.movement_product_id}}{{=response.movement_product_control}}{{=response.movement_shippingdate}}
{{=response.movement_form.custom.label.qty}}
{{=response.movement_form.custom.widget.qty}}
{{=response.movement_form.custom.label.shared}}
{{=response.movement_form.custom.widget.shared}}
{{=T("Warehouse")}}
{{=response.movement_place_control}}{{=response.movement_place_id}}
{{=response.movement_form.custom.label.notes}}
{{=response.movement_form.custom.widget.notes}}
000000{{=response.movement_id}}{{=response.movement_trans_id}}
{{=response.movement_form.custom.label.shippingdate}}
{{=response.movement_shippingdate_enabled}}
{{=response.movement_form.custom.label.product_id}}
{{=response.movement_product_id}}{{=response.movement_product_control}}
{{=T("Warehouse")}}
{{=response.movement_place_control}}{{=response.movement_place_id}}
{{=response.movement_form.custom.label.qty}}
{{=response.movement_form.custom.widget.qty}}
{{=response.movement_form.custom.label.notes}}
{{=response.movement_form.custom.widget.notes}}
000000{{=response.movement_id}}{{=response.movement_trans_id}}
{{=response.movement_form.custom.label.shippingdate}}
{{=response.movement_shippingdate_disabled}}{{=response.movement_shippingdate}}
{{=response.movement_form.custom.label.product_id}}
{{=response.movement_product_id}}{{=response.movement_product_control}}
{{=T("Warehouse")}}
{{=response.movement_place_planumber}}{{=response.movement_place_id}}
{{=response.movement_form.custom.label.qty}}
{{=response.movement_form.custom.widget.qty}}
{{=response.movement_form.custom.label.notes}}
{{=response.movement_form.custom.widget.notes}}
{{pass}}
{{=response.view_movement}} {{=response.movement_form.custom.end}}
{{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}}
{{pass}}