{
	"name": "query/manager/order/order/invoice/linked.json",
	"table": [
		{
			"record_type": ["invoice"],
			"table": "order"
		}
	],
	"database": "4d",
	"parameter": {
		"invoice_id": "",
		"record_id": ""
	},
	"field": [
		"ord.order_id",
		"ord.invoicing_company_id",
		"ord.delivery_company_id",
		"ord.currency_id",
		"inv_penalty_interest_percent",
		"inv_bank_reference_number",
		"ord.due_date"
	],
	"optional_parameter": ["record_id", "invoice_id"],
	"query": [
		["ord.record_id", "=", "record_id"],
		"or",
		["ord.order_id", "=", "invoice_id"]
	]
}