{
	"name": "table/external/4d/manager/order/purchase_order_row.json",
	"table_name": "purchase_order_row",
	"table_prefix": "por",
	"main_table": "purchase_order",
	"record_type": ["purchase"],
	"local_table": "order_row",
	"local_record_type": "purchase",
	"table_number": 20,
	"field": [
		{
			"field_name": "additional_data",
			"field_number": 57,
			"local_field": "json_data"
		},
		{
			"field_length": 90,
			"field_name": "change_id",
			"field_number": 13,
			"local_field": "modify_id"
		},
		{
			"field_length": 24,
			"field_name": "company_id",
			"field_number": 26,
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "company_id",
					"linked_table": "company"
				}
			],
			"local_field": "json_data.company_id",
			"nullable": true
		},
		{
			"field_name": "confirmation_state",
			"field_number": 58,
			"local_field": "json_data.confirmation_state"
		},
		{
			"field_name": "confirmed_arrival_date",
			"field_number": 12,
			"local_field": "confirmed_delivery_date"
		},
		{
			"field_length": 160,
			"field_name": "cost_center",
			"field_number": 45,
			"local_field": "json_data.cost_center"
		},
		{
			"field_length": 40,
			"field_name": "creator_id",
			"field_number": 54,
			"local_field": "create_user"
		},
		{
			"field_length": 80,
			"field_name": "customer_project",
			"field_number": 52,
			"local_field": "json_data.customer_project"
		},
		{
			"field_name": "date_of_arrival",
			"field_number": 30,
			"local_field": "actual_delivery_date"
		},
		{
			"field_name": "delivered_amount",
			"field_number": 23,
			"local_field": "delivery_amount"
		},
		{
			"field_length": 4,
			"field_name": "delivery_state",
			"field_number": 8,
			"local_field": "delivery_state"
		},
		{
			"field_name": "delivery_to_customer",
			"field_number": 59,
			"local_field": "json_data.delivery_to_customer"
		},
		{
			"field_name": "dimension",
			"field_number": 31,
			"local_field": "json_data.dimension"
		},
		{
			"field_name": "discount_amount",
			"field_number": 35,
			"local_field": "discount_price"
		},
		{
			"field_name": "discount_percentage",
			"field_number": 34,
			"local_field": "discount_percent"
		},
		{
			"field_name": "explanation",
			"field_number": 19,
			"local_field": "description"
		},
		{
			"field_name": "firm_id",
			"field_number": 43,
			"local_field": "json_data.firm_id"
		},
		{
			"field_name": "first_confirm_deliv_date",
			"field_number": 38,
			"local_field": "json_data.first_confirmed_delivery_date"
		},
		{
			"field_name": "in_accounts_payable",
			"field_number": 25,
			"local_field": "json_data.in_accounts_payable"
		},
		{
			"field_name": "info",
			"field_number": 15,
			"local_field": "info"
		},
		{
			"field_name": "lme_price",
			"field_number": 48,
			"local_field": "json_data.lme_price"
		},
		{
			"field_name": "material_stock_state",
			"field_number": 49,
			"local_field": "json_data.material_stock_state"
		},
		{
			"field_length": 40,
			"field_name": "modifier_id",
			"field_number": 55,
			"local_field": "json_data.modifier_id"
		},
		{
			"field_name": "order_amount",
			"field_number": 9,
			"local_field": "order_amount"
		},
		{
			"field_name": "order_amount_2",
			"field_number": 44,
			"local_field": "json_data.order_amount_2"
		},
		{
			"field_name": "order_date",
			"field_number": 29,
			"local_field": "json_data.order_date"
		},
		{
			"field_length": 60,
			"field_name": "order_row",
			"field_number": 28
		},
		{
			"field_length": 4,
			"field_name": "order_state",
			"field_number": 27,
			"local_field": "json_data.order_state"
		},
		{
			"field_length": 10,
			"field_name": "order_unit",
			"field_number": 10,
			"local_field": "unit"
		},
		{
			"field_length": 60,
			"field_name": "parcel_code",
			"field_number": 18,
			"local_field": "json_data.parcel_code"
		},
		{
			"field_length": 60,
			"field_name": "parcel_type",
			"field_number": 37,
			"local_field": "json_data.parcel_type"
		},
		{
			"field_name": "partial_delivery_number",
			"field_number": 24,
			"local_field": "json_data.partial_delivery_number"
		},
		{
			"field_name": "price__unit",
			"field_number": 16,
			"local_field": "unit_price"
		},
		{
			"field_name": "price_confirmation",
			"field_number": 46,
			"local_field": "json_data.price_confirmation"
		},
		{
			"field_length": 88,
			"field_name": "product_id",
			"field_number": 1,
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "product_id",
					"linked_table": "product"
				}
			],
			"local_field": "product_id",
			"nullable": true
		},
		{
			"field_length": 70,
			"field_name": "production_lot",
			"field_number": 6,
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "production_lot",
					"linked_table": "work_order"
				}
			],
			"local_field": "production_lot",
			"nullable": true
		},
		{
			"field_length": 80,
			"field_name": "project_id",
			"field_number": 53,
			"local_field": "project_id"
		},
		{
			"field_name": "purchase_costs",
			"field_number": 47,
			"local_field": "json_data.purchase_cost"
		},
		{
			"field_length": 12,
			"field_name": "purchase_order_code_id",
			"field_number": 20,
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "purchase_order_code_id",
					"linked_table": "purchase_order_code"
				}
			],
			"local_field": "order_code_id",
			"nullable": true
		},
		{
			"field_length": 20,
			"field_name": "purchase_order_id",
			"field_number": 17,
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "purchase_order_id",
					"linked_table": "purchase_order"
				}
			],
			"local_field": "order_id",
			"nullable": true
		},
		{
			"field_name": "purchase_price_total",
			"field_number": 7,
			"local_field": "price_without_vat"
		},
		{
			"constraint": ["unique"],
			"field_length": 90,
			"field_name": "record_id",
			"field_number": 42,
			"local_field": "record_id"
		},
		{
			"field_name": "requested_delivery_date",
			"field_number": 40,
			"local_field": "delivery_date"
		},
		{
			"field_name": "row_number",
			"field_number": 11,
			"local_field": "row_number"
		},
		{
			"field_length": 20,
			"field_name": "sales_order_id",
			"field_number": 32,
			"local_field": "json_data.sales_order_id"
		},
		{
			"field_length": 20,
			"field_name": "stock_event",
			"field_number": 2,
			"local_field": "stock_event_id"
		},
		{
			"field_name": "stock_position",
			"field_number": 36,
			"local_field": "json_data.stock_position"
		},
		{
			"field_name": "subcontract_sent_date",
			"field_number": 39,
			"local_field": "json_data.subcontract_sent_date"
		},
		{
			"field_length": 100,
			"field_name": "supplier_material_code",
			"field_number": 41,
			"local_field": "json_data.company_product_code"
		},
		{
			"field_length": 30,
			"field_name": "tariff_heading",
			"field_number": 33,
			"local_field": "json_data.tariff_heading"
		},
		{
			"field_length": 120,
			"field_name": "transfer_id",
			"field_number": 51,
			"local_field": "json_data.transfer_id"
		},
		{
			"field_name": "transfer_state",
			"field_number": 56,
			"local_field": "json_data.transfer_state"
		},
		{
			"field_length": 4,
			"field_name": "type_",
			"field_number": 14,
			"local_field": "json_data.order_type"
		},
		{
			"field_name": "unit_total",
			"field_number": 3,
			"local_field": "json_data.unit_total"
		},
		{
			"field_name": "vat_percentage",
			"field_number": 21,
			"local_field": "vat_percent"
		},
		{
			"field_name": "vat_price",
			"field_number": 22,
			"local_field": "vat_price"
		},
		{
			"field_length": 60,
			"field_name": "work__position_number_id",
			"field_number": 5,
			"local_field": "json_data.work__position_number_id"
		},
		{
			"field_name": "work_phase_number",
			"field_number": 4,
			"local_field": "json_data.work_phase_number"
		},
		{
			"field_name": "xml_value",
			"field_number": 50,
			"local_field": "json_data.xml_value"
		}
	],
	"default_field": "table/default_field.json"
}
