{
	"name": "table/external/4d/manager/order/invoice.json",
	"table_name": "invoice",
	"table_prefix": "inv",
	"record_type": ["invoice"],
	"local_table": "order",
	"local_record_type": "invoice",
	"table_number": 17,
	"field": [{
			"field_name": "additional_data",
			"field_number": 65,
			"local_field": "json_data"
		},
		{
			"field_name": "cash_discount_due_date",
			"field_number": 37,
			"local_field": "json_data.cash_discount_due_date",
			"field_type": "date"
		},
		{
			"field_length": 90,
			"field_name": "change_id",
			"field_number": 61,
			"local_field": "modify_id"
		},
		{
			"field_length": 20,
			"field_name": "collection_invoice_id",
			"field_number": 54,
			"local_field": "json_data.collection_invoice_id"
		},
		{
			"field_name": "collection_started",
			"field_number": 49,
			"local_field": "json_data.collection_started"
		},
		{
			"field_name": "coming_total",
			"field_number": 30,
			"local_field": "json_data.coming_price"
		},
		{
			"field_length": 24,
			"field_name": "company_id",
			"field_number": 1,
			"foreign_key": [{
				"default_link": true,
				"link_type": "prevent delete",
				"linked_field": "company_id",
				"linked_table": "company"
			}],
			"local_field": "invoicing_company_id",
			"nullable": true
		},
		{
			"field_length": 40,
			"field_name": "creator_id",
			"field_number": 62,
			"local_field": "create_user"
		},
		{
			"field_length": 20,
			"field_name": "credit_note",
			"field_number": 47,
			"local_field": "json_data.credit_note"
		},
		{
			"field_length": 12,
			"field_name": "currency_id",
			"field_number": 14,
			"foreign_key": [{
				"link_type": "prevent delete",
				"linked_field": "currency_id",
				"linked_table": "currency"
			}],
			"local_field": "currency_id",
			"nullable": true
		},
		{
			"field_length": 160,
			"field_name": "customer_order_number",
			"field_number": 56,
			"local_field": "company_reference_number"
		},
		{
			"field_length": 80,
			"field_name": "customer_project",
			"field_number": 45,
			"local_field": "json_data.customer_project"
		},
		{
			"field_name": "date_",
			"field_number": 5,
			"local_field": "order_date",
			"field_type": "date"
		},
		{
			"field_name": "delivery_address",
			"field_number": 35,
			"local_field": "delivery_address"
		},
		{
			"field_length": 24,
			"field_name": "delivery_company_id",
			"field_number": 34,
			"foreign_key": [{
				"link_type": "prevent delete",
				"linked_field": "company_id",
				"linked_table": "company"
			}],
			"local_field": "delivery_company_id",
			"nullable": true
		},
		{
			"field_name": "description_of_the_goods",
			"field_number": 43,
			"local_field": "json_data.description_of_the_goods"
		},
		{
			"field_name": "destination_date",
			"field_number": 48,
			"local_field": "json_data.destination_date",
			"field_type": "date"
		},
		{
			"field_name": "discount_amount",
			"field_number": 25,
			"local_field": "discount_price"
		},
		{
			"field_name": "discount_percentage",
			"field_number": 26,
			"local_field": "json_data.discount_percentage"
		},
		{
			"field_name": "discount_total",
			"field_number": 23,
			"local_field": "json_data.payment_discount_price"
		},
		{
			"field_length": 12,
			"field_name": "divided",
			"field_number": 27,
			"local_field": "json_data.divided"
		},
		{
			"field_name": "due_date",
			"field_number": 10,
			"local_field": "due_date",
			"field_type": "date"
		},
		{
			"field_length": 80,
			"field_name": "eur_1_no",
			"field_number": 38,
			"local_field": "json_data.eur_1_no"
		},
		{
			"field_name": "exchange_rate",
			"field_number": 44,
			"local_field": "exchange_rate"
		},
		{
			"field_name": "exported_to_ar",
			"field_number": 9,
			"local_field": "json_data.exported_to_ar"
		},
		{
			"field_name": "firm_id",
			"field_number": 46,
			"local_field": "json_data.firm_id"
		},
		{
			"field_name": "footnote",
			"field_number": 2,
			"local_field": "json_data.footnote"
		},
		{
			"field_name": "gross_weight",
			"field_number": 40,
			"local_field": "json_data.gross_weight"
		},
		{
			"field_length": 24,
			"field_name": "handler_id",
			"field_number": 20,
			"local_field": "json_data.handler_id"
		},
		{
			"field_name": "info",
			"field_number": 15,
			"local_field": "info"
		},
		{
			"field_name": "invoice_address",
			"field_number": 3,
			"local_field": "invoicing_address"
		},
		{
			"constraint": ["unique"],
			"field_length": 20,
			"field_name": "invoice_id",
			"field_number": 4,
			"local_field": "order_id"
		},
		{
			"field_name": "invoice_text",
			"field_number": 8,
			"local_field": "note"
		},
		{
			"field_name": "last_collection_date",
			"field_number": 50,
			"local_field": "json_data.last_collection_date",
			"field_type": "date"
		},
		{
			"field_length": 160,
			"field_name": "mark",
			"field_number": 33,
			"local_field": "json_data.mark"
		},
		{
			"field_length": 40,
			"field_name": "modifier_id",
			"field_number": 63,
			"local_field": "json_data.modifier_id"
		},
		{
			"field_name": "net_weight",
			"field_number": 41,
			"field_type": "double",
			"local_field": "json_data.net_weight"
		},
		{
			"field_name": "no_interest_invoice",
			"field_number": 66
		},
		{
			"field_name": "order_discount_percentage",
			"field_number": 21,
			"local_field": "json_data.order_discount_percentage"
		},
		{
			"field_name": "order_discount_total",
			"field_number": 22,
			"local_field": "json_data.order_discount_total"
		},
		{
			"field_length": 70,
			"field_name": "our_reference",
			"field_number": 18,
			"local_field": "our_reference"
		},
		{
			"field_name": "paid_total",
			"field_number": 29,
			"local_field": "json_data.paid_price",
			"field_type": "double"
		},
		{
			"field_name": "penalty_interest",
			"field_number": 12,
			"local_field": "json_data.penalty_interest_percent",
			"field_type": "double"
		},
		{
			"field_name": "price_total",
			"field_number": 6,
			"local_field": "price_without_vat",
			"field_type": "double"
		},
		{
			"field_name": "printed",
			"field_number": 24,
			"local_field": "json_data.printed"
		},
		{
			"field_length": 80,
			"field_name": "project_id",
			"field_number": 60,
			"local_field": "json_data.project_id"
		},
		{
			"constraint": ["unique"],
			"field_length": 90,
			"field_name": "record_id",
			"field_number": 55,
			"local_field": "record_id"
		},
		{
			"field_length": 40,
			"field_name": "reference_number",
			"field_number": 31,
			"local_field": "json_data.bank_reference_number"
		},
		{
			"field_length": 70,
			"field_name": "remark_time",
			"field_number": 17,
			"local_field": "json_data.remark_time"
		},
		{
			"field_length": 80,
			"field_name": "send_state",
			"field_number": 58,
			"local_field": "json_data.send_state"
		},
		{
			"field_length": 80,
			"field_name": "send_type",
			"field_number": 57,
			"local_field": "json_data.send_type"
		},
		{
			"field_name": "state",
			"field_number": 51,
			"local_field": "order_state"
		},
		{
			"field_name": "supplier_invoice_date",
			"field_number": 53,
			"local_field": "json_data.supplier_invoice_date",
			"field_type": "date"
		},
		{
			"field_length": 80,
			"field_name": "supplier_invoice_number",
			"field_number": 52,
			"local_field": "json_data.supplier_invoice_number"
		},
		{
			"field_length": 60,
			"field_name": "term_of_delivery",
			"field_number": 39,
			"local_field": "term_of_delivery"
		},
		{
			"field_length": 24,
			"field_name": "terms_of_payment_id",
			"field_number": 11,
			"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_name": "total_amount",
			"field_number": 13,
			"local_field": "price_with_vat"
		},
		{
			"field_name": "total_rounding",
			"field_number": 36,
			"local_field": "json_data.rounding_price"
		},
		{
			"field_length": 120,
			"field_name": "transfer_id",
			"field_number": 59,
			"local_field": "json_data.transfer_id"
		},
		{
			"field_name": "transfer_state",
			"field_number": 64,
			"local_field": "json_data.transfer_state"
		},
		{
			"field_length": 4,
			"field_name": "type_",
			"field_number": 28,
			"local_field": "order_type"
		},
		{
			"field_name": "vat_total",
			"field_number": 7,
			"local_field": "vat_price"
		},
		{
			"field_name": "volume",
			"field_number": 42,
			"local_field": "json_data.volume"
		},
		{
			"field_length": 24,
			"field_name": "voucher_id",
			"field_number": 32,
			"local_field": "voucher_id"
		},
		{
			"field_length": 80,
			"field_name": "way_of_delivery",
			"field_number": 16,
			"local_field": "way_of_delivery"
		},
		{
			"field_length": 70,
			"field_name": "your_reference",
			"field_number": 19,
			"local_field": "your_reference"
		}
	],
	"default_field": "table/default_field.json"
}