{
	"name": "table/external/4d/order/invoice_payment.json",
	"table_name": "invoice_payment",
	"table_prefix": "inpa",
	"record_type": ["invoice"],
	"local_table": "payment",
	"local_record_type": "invoice",
	"table_number": 32,
	"field": [
		{
			"field_name": "account_id",
			"local_field": "account_id",
			"field_type": "varchar",
			"field_length": 12,
			"field_number": 10,
			"constraint": ["index"],
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "account_id",
					"linked_table": "account"
				}
			],
			"nullable": true
		},
		{
			"field_name": "arrival_date",
			"local_field": "value_date",
			"field_type": "date",
			"field_number": 5,
			"constraint": ["index"]
		},
		{
			"field_name": "bank_statement",
			"local_field": "bank_statement",
			"field_type": "varchar",
			"field_length": 40,
			"field_number": 24
		},
		{
			"field_name": "change_id",
			"local_field": "modify_id",
			"field_type": "varchar",
			"field_length": 45,
			"field_number": 29
		},
		{
			"field_name": "creator_id",
			"local_field": "json_data.create_user",
			"field_type": "varchar",
			"field_length": 20,
			"field_number": 30
		},
		{
			"field_name": "currency_id",
			"local_field": "currency_id",
			"field_type": "varchar",
			"field_length": 6,
			"field_number": 19,
			"constraint": ["index"],
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "currency_id",
					"linked_table": "currency"
				}
			],
			"nullable": true
		},
		{
			"field_name": "customer",
			"local_field": "json_data.customer",
			"field_type": "varchar",
			"field_length": 12,
			"field_number": 18,
			"constraint": ["index"]
		},
		{
			"field_name": "customer_project",
			"local_field": "json_data.customer_project",
			"field_type": "varchar",
			"field_length": 40,
			"field_number": 27
		},
		{
			"field_name": "days_late",
			"local_field": "days_late",
			"field_type": "integer",
			"field_number": 11
		},
		{
			"field_name": "decrement_sum",
			"local_field": "local_discount_price",
			"field_type": "double",
			"field_number": 15
		},
		{
			"field_name": "decrement_type",
			"local_field": "discount_type",
			"field_type": "varchar",
			"field_length": 2,
			"field_number": 16
		},
		{
			"field_name": "exchange_rate",
			"local_field": "exchange_rate",
			"field_type": "double",
			"field_number": 20
		},
		{
			"field_name": "firm_id",
			"local_field": "json_data.firm_id",
			"field_type": "integer",
			"field_number": 21,
			"constraint": ["index"]
		},
		{
			"field_name": "handler_id",
			"local_field": "json_data.handler_id",
			"field_type": "varchar",
			"field_length": 20,
			"field_number": 22
		},
		{
			"field_name": "info",
			"local_field": "info",
			"field_type": "text",
			"field_number": 14
		},
		{
			"field_name": "interest_invoice",
			"local_field": "json_data.interest_invoice",
			"field_type": "varchar",
			"field_length": 10,
			"field_number": 13,
			"constraint": ["index"]
		},
		{
			"field_name": "interest_total",
			"local_field": "penalty_interest_price",
			"field_type": "double",
			"field_number": 12,
			"constraint": ["index"]
		},
		{
			"field_name": "invoice_id",
			"local_field": "invoice_id",
			"field_type": "varchar",
			"field_length": 10,
			"field_number": 1,
			"constraint": ["index"],
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "invoice_id",
					"linked_table": "invoice"
				}
			],
			"nullable": true
		},
		{
			"field_name": "invoice_payment_code",
			"local_field": "payment_id",
			"field_type": "varchar",
			"field_length": 10,
			"field_number": 2,
			"constraint": ["unique"]
		},
		{
			"field_name": "is_partial_payment",
			"local_field": "json_data.is_partial_payment",
			"field_type": "boolean",
			"field_number": 3
		},
		{
			"field_name": "method_of_payment",
			"local_field": "json_data.method_of_payment",
			"field_type": "varchar",
			"field_length": 25,
			"field_number": 8
		},
		{
			"field_name": "modifier_id",
			"local_field": "modify_user",
			"field_type": "varchar",
			"field_length": 20,
			"field_number": 31
		},
		{
			"field_name": "payment",
			"local_field": "local_paid_price",
			"field_type": "double",
			"field_number": 7
		},
		{
			"field_name": "payment_date",
			"local_field": "payment_date",
			"field_type": "date",
			"field_number": 4,
			"constraint": ["index"]
		},
		{
			"field_name": "payment_number",
			"local_field": "json_data.payment_number",
			"field_type": "integer",
			"field_number": 6
		},
		{
			"field_name": "project_id",
			"local_field": "json_data.project_id",
			"field_type": "varchar",
			"field_length": 40,
			"field_number": 28
		},
		{
			"field_name": "record_id",
			"local_field": "record_id",
			"field_type": "varchar",
			"field_length": 45,
			"field_number": 25,
			"constraint": ["unique"]
		},
		{
			"field_name": "reference_number",
			"local_field": "json_data.bank_reference_number",
			"field_type": "varchar",
			"field_length": 20,
			"field_number": 9
		},
		{
			"field_name": "saved_currency",
			"local_field": "json_data.saved_currency",
			"field_type": "varchar",
			"field_length": 6,
			"field_number": 23
		},
		{
			"field_name": "transfer_id",
			"local_field": "json_data.transfer_id",
			"field_type": "varchar",
			"field_length": 60,
			"field_number": 26,
			"constraint": ["index"]
		},
		{
			"field_name": "transfer_state",
			"local_field": "json_data.transfer_state",
			"field_type": "integer",
			"field_number": 32
		},
		{
			"field_name": "voucher_number",
			"local_field": "json_data.voucher_number",
			"field_type": "varchar",
			"field_length": 12,
			"field_number": 17,
			"constraint": ["index"]
		}
	]
}
