{
	"name": "save/manager/order/sales/save_sales_order.json",
	"table": [
		{
			"record_type": "sales",
			"row_number_field": [
				{
					"field": "ordr.row_number",
					"start_value": 0
				}
			],
			"row_table": [
				"order_row"
			],
			"table": "order"
		}
	],
	"run_script": [
		{
			"script_field": [
				"ord.company_id"
			],
			"table": "order",
			"up_calculate": true
		},
		{
			"find_linked_record": [
				"ordr.order_id"
			],
			"init_new_record": true,
			"script_field": [
				"ordr.product_id",
				"ordr.order_amount"
			],
			"table": "order_row"
		}
	]
}
