{
	"name": "table/external/4d/manager/order/accounts_payable.json",
	"table_name": "accounts_payable",
	"table_prefix": "ap",
	"record_type": ["accounts_payable"],
	"local_table": "order",
	"local_record_type": "accounts_payable",
	"table_number": 28,
	"field": [
		{
			"field_length": 60,
			"field_name": "accounts_ledger",
			"field_number": 26,
			"local_field": "json_data.accounts_ledger"
		},
		{
			"field_length": 4,
			"field_name": "approval_state",
			"field_number": 23,
			"local_field": "json_data.approval_state"
		},
		{
			"field_name": "cash_discount_due_date",
			"field_number": 11,
			"local_field": "json_data.cash_discount_due_date"
		},
		{
			"field_length": 90,
			"field_name": "change_id",
			"field_number": 37,
			"local_field": "modify_id"
		},
		{
			"constraint": ["unique"],
			"field_length": 20,
			"field_name": "code_id",
			"field_number": 8,
			"local_field": "order_id"
		},
		{
			"field_length": 40,
			"field_name": "creator_id",
			"field_number": 38,
			"local_field": "create_user"
		},
		{
			"field_length": 12,
			"field_name": "currency_id",
			"field_number": 21,
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "currency_id",
					"linked_table": "currency"
				}
			],
			"local_field": "currency_id",
			"nullable": true
		},
		{
			"field_length": 80,
			"field_name": "customer_project",
			"field_number": 35,
			"local_field": "json_data.customer_project"
		},
		{
			"field_name": "debet_total",
			"field_number": 14,
			"local_field": "json_data.debet_total"
		},
		{
			"field_name": "destination_date",
			"field_number": 28,
			"local_field": "json_data.destination_date"
		},
		{
			"field_name": "due_date",
			"field_number": 3,
			"local_field": "due_date"
		},
		{
			"field_name": "exchange_rate",
			"field_number": 22,
			"local_field": "exchange_rate"
		},
		{
			"field_name": "firm_id",
			"field_number": 31,
			"local_field": "json_data.firm_id"
		},
		{
			"field_length": 40,
			"field_name": "handler",
			"field_number": 10,
			"local_field": "person_id"
		},
		{
			"field_name": "info",
			"field_number": 7,
			"local_field": "info"
		},
		{
			"field_name": "invoice_date",
			"field_number": 2,
			"local_field": "order_date"
		},
		{
			"field_length": 40,
			"field_name": "invoice_number",
			"field_number": 5,
			"local_field": "company_reference_number"
		},
		{
			"field_name": "kredit_total",
			"field_number": 15,
			"local_field": "json_data.kredit_total"
		},
		{
			"field_length": 50,
			"field_name": "method_of_payment",
			"field_number": 4,
			"local_field": "json_data.method_of_payment"
		},
		{
			"field_length": 40,
			"field_name": "modifier_id",
			"field_number": 39,
			"local_field": "json_data.modifier_id"
		},
		{
			"field_name": "no_bank_program",
			"field_number": 27,
			"local_field": "json_data.no_bank_program"
		},
		{
			"field_length": 120,
			"field_name": "note",
			"field_number": 18,
			"local_field": "note"
		},
		{
			"field_length": 30,
			"field_name": "note_type",
			"field_number": 19,
			"local_field": "json_data.note_type"
		},
		{
			"field_name": "payable_amount",
			"field_number": 9,
			"local_field": "json_data.payable_amount"
		},
		{
			"field_name": "payment_date",
			"field_number": 12,
			"local_field": "json_data.payment_date"
		},
		{
			"field_name": "priority",
			"field_number": 33,
			"local_field": "json_data.priority"
		},
		{
			"field_length": 80,
			"field_name": "project_id",
			"field_number": 36,
			"local_field": "json_data.project_id"
		},
		{
			"field_length": 24,
			"field_name": "purchase_debt_account_id",
			"field_number": 17,
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "account_id",
					"linked_table": "account"
				}
			],
			"local_field": "json_data.purchase_debt_account_id",
			"nullable": true
		},
		{
			"field_length": 160,
			"field_name": "purchase_order_id",
			"field_number": 1,
			"local_field": "json_data.purchase_order_id"
		},
		{
			"field_length": 80,
			"field_name": "receiver_bank_account",
			"field_number": 25,
			"local_field": "json_data.bank_account"
		},
		{
			"field_length": 24,
			"field_name": "receiver_id",
			"field_number": 6,
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "supplier_id",
					"linked_table": "supplier"
				}
			],
			"local_field": "invoicing_company_id",
			"nullable": true
		},
		{
			"constraint": ["unique"],
			"field_length": 90,
			"field_name": "record_id",
			"field_number": 32,
			"local_field": "record_id"
		},
		{
			"field_length": 160,
			"field_name": "reference_number",
			"field_number": 16,
			"local_field": "json_data.bank_reference_number"
		},
		{
			"field_name": "sum_of_payable",
			"field_number": 30,
			"local_field": "price_with_vat"
		},
		{
			"field_name": "sum_of_payment",
			"field_number": 29,
			"local_field": "json_data.paid_price"
		},
		{
			"field_length": 24,
			"field_name": "supplier_id",
			"field_number": 13,
			"foreign_key": [
				{
					"default_link": true,
					"link_type": "prevent delete",
					"linked_field": "supplier_id",
					"linked_table": "supplier"
				}
			],
			"local_field": "company_id",
			"nullable": true
		},
		{
			"field_length": 80,
			"field_name": "swift_code",
			"field_number": 41,
			"local_field": "json_data.intermediator"
		},
		{
			"field_length": 24,
			"field_name": "terms_of_payment_id",
			"field_number": 24,
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "terms_of_payment_id",
					"linked_table": "terms_of_payment"
				}
			],
			"local_field": "terms_of_payment_id",
			"nullable": true
		},
		{
			"field_length": 120,
			"field_name": "transfer_id",
			"field_number": 34,
			"local_field": "json_data.transfer_id"
		},
		{
			"field_name": "transfer_state",
			"field_number": 40,
			"local_field": "json_data.transfer_state"
		},
		{
			"field_length": 40,
			"field_name": "voucher_number",
			"field_number": 20,
			"local_field": "voucher_id"
		}
	],
	"default_field": "table/default_field.json"
}
