{
	"name": "form/manager/erp-sync/moloni/save/order-purchase.json",
	"table": [
		{
			"table": "order",
			"record_type": "purchase",
			"row_table": [{"table": "order_row", "tag_name": "products"}],
			"data_structure": "structure"
		}
	],
	"parameter": {
		"access_token": "",
		"show_sql": true
	},
	"organization_id": "moloni",
	"call_function": "supplierPurchaseOrder/insert/?json=true&access_token={{access_token}}",
	"delete": [
		{
			"record_type": "purchase",
			"table": "order"
		}
	],
	"default_value": {
		"order": {
			"static": {
				"company_id": 644095,
				"json_data.moloni.document_set_id": 153703
			},
			"tag": {
				"json_data.moloni.expiration_date": "order_date"
			}
		},
		"order_row": {
			"static": {
				"json_data.moloni.exemption_reason": "M20"
			}
		}
	},
	"run_script": []
}
