{
	"name": "form/nc/erp-sync/wapro/save/order-invoice.json",
	"organization_id": "wapro",
	"parameter": {
		"show_sql": true
	},
	"save": [
		{
			"record_type": ["invoice"],
			"table": "order",
			"all_fields": false,
			"on_conflict": "update",
			"row_table": [{ "table": "order_row", "all_fields": false, "on_conflict": "update" }],
			"row_number_field": [
				{
					"field": "ordr.row_number",
					"start_value": 1
				}
			]
		}
	],
	"default_value": {
		"order": {
			"copy_value": {
				"json_data.co.name": "co.name",
				"json_data.co.post_code": "co.post_code",
				"json_data.co.post_office": "co.post_office",
				"json_data.co.vat_number": "co.vat_number"
			}
		}
	}
}
