{
	"name": "table/external/4d/order/accounts_payable_row.json",
	"table_name": "accounts_payable_row",
	"table_prefix": "apr",
	"main_table": "accounts_payable",
	"record_type": ["accounts_payable"],
	"local_table": "order_row",
	"local_record_type": "accounts_payable",
	"table_number": 39,
	"field": [
		{
			"field_name": "account_id",
			"local_field": "account_id",
			"field_type": "varchar",
			"field_length": 12,
			"field_number": 2,
			"constraint": ["index"],
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "account_id",
					"linked_table": "account"
				}
			],
			"nullable": true
		},
		{
			"field_name": "accounts_payable_id",
			"local_field": "order_id",
			"field_type": "varchar",
			"field_length": 10,
			"field_number": 1,
			"constraint": ["index"],
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "code_id",
					"linked_table": "accounts_payable"
				}
			],
			"nullable": true
		},
		{
			"field_name": "change_id",
			"local_field": "modify_id",
			"field_type": "varchar",
			"field_length": 45,
			"field_number": 21
		},
		{
			"field_name": "creator_id",
			"local_field": "json_data.create_user",
			"field_type": "varchar",
			"field_length": 20,
			"field_number": 22
		},
		{
			"field_name": "currency_sum",
			"local_field": "price_without_vat",
			"field_type": "double",
			"field_number": 12
		},
		{
			"field_name": "customer_project",
			"local_field": "json_data.customer_project",
			"field_type": "varchar",
			"field_length": 40,
			"field_number": 19
		},
		{
			"field_name": "debet_sum",
			"local_field": "json_data.debet_price",
			"field_type": "double",
			"field_number": 4
		},
		{
			"field_name": "explanation",
			"local_field": "description",
			"field_type": "varchar",
			"field_length": 80,
			"field_number": 3
		},
		{
			"field_name": "final_payment",
			"local_field": "json_data.final_payment",
			"field_type": "boolean",
			"field_number": 9
		},
		{
			"field_name": "firm_id",
			"local_field": "json_data.firm_id",
			"field_type": "integer",
			"field_number": 15,
			"constraint": ["index"]
		},
		{
			"field_name": "info",
			"local_field": "info",
			"field_type": "text",
			"field_number": 16
		},
		{
			"field_name": "kredit_sum",
			"local_field": "json_data.kredit_sum",
			"field_type": "double",
			"field_number": 5
		},
		{
			"field_name": "modifier_id",
			"local_field": "modify_user",
			"field_type": "varchar",
			"field_length": 20,
			"field_number": 23
		},
		{
			"field_name": "po_row_record_number",
			"local_field": "json_data.po_row_record_number",
			"field_type": "integer",
			"field_number": 10
		},
		{
			"field_name": "product_id",
			"local_field": "product_id",
			"field_type": "varchar",
			"field_length": 44,
			"field_number": 7,
			"constraint": ["index"],
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "product_id",
					"linked_table": "product"
				}
			],
			"nullable": true
		},
		{
			"field_name": "project_id",
			"local_field": "json_data.project_id",
			"field_type": "varchar",
			"field_length": 40,
			"field_number": 20
		},
		{
			"field_name": "purchase_debt_account_id",
			"local_field": "contra_account_id",
			"field_type": "varchar",
			"field_length": 12,
			"field_number": 17,
			"constraint": ["index"]
		},
		{
			"field_name": "purchase_order_code_id",
			"local_field": "order_code_id",
			"field_type": "varchar",
			"field_length": 6,
			"field_number": 13,
			"constraint": ["index"]
		},
		{
			"field_name": "record_id",
			"local_field": "record_id",
			"field_type": "varchar",
			"field_length": 45,
			"field_number": 14,
			"constraint": ["unique"]
		},
		{
			"field_name": "row_number",
			"local_field": "row_number",
			"field_type": "integer",
			"field_number": 8,
			"constraint": ["index"]
		},
		{
			"field_name": "state",
			"local_field": "json_data.state",
			"field_type": "varchar",
			"field_length": 2,
			"field_number": 11,
			"constraint": ["index"]
		},
		{
			"field_name": "target",
			"local_field": "json_data.target",
			"field_type": "varchar",
			"field_length": 30,
			"field_number": 6
		},
		{
			"field_name": "transfer_id",
			"local_field": "json_data.transfer_id",
			"field_type": "varchar",
			"field_length": 60,
			"field_number": 18,
			"constraint": ["index"]
		},
		{
			"field_name": "transfer_state",
			"local_field": "json_data.transfer_state",
			"field_type": "integer",
			"field_number": 24
		}
	]
}
