{
	"name": "table/external/finvoice/order/order_row-invoice.json",
	"table_name": "order_row",
	"table_prefix": "ordr",
	"record_type": ["invoice"],
	"local_table": "order_row",
	"local_record_type": "invoice",
	"default_field": "table/prf/default_field.json",
	"default_order": [
		{
			"field": "order_id",
			"order": ">"
		}
	],
	"field_change": [
		{
			"name": "production_order_id",
			"old_name": ["production_lot"]
		}
	],
	"field": [
		{
			"field_name": "account_id",
			"local_field": "account_id",
			"field_type": "text"
		},
		{
			"field_name": "actual_delivery_date",
			"local_field": "actual_delivery_date",
			"field_type": "date"
		},
		{
			"field_name": "collected_amount",
			"local_field": "collected_amount",
			"field_type": "text"
		},
		{
			"field_name": "confirmed_delivery_date",
			"local_field": "confirmed_delivery_date",
			"field_type": "date"
		},
		{
			"field_name": "contra_account_id",
			"local_field": "contra_account_id",
			"field_type": "text"
		},
		{
			"field_name": "delivered_before",
			"local_field": "delivered_before",
			"field_type": "double"
		},
		{
			"field_name": "delivery_amount",
			"local_field": "delivery_amount",
			"field_type": "double"
		},
		{
			"field_name": "delivery_date",
			"local_field": "delivery_date",
			"field_type": "date"
		},
		{
			"field_name": "delivery_state",
			"local_field": "delivery_state",
			"field_type": "text"
		},
		{
			"field_name": "description",
			"local_field": "description",
			"field_type": "text"
		},
		{
			"field_name": "discount_percent",
			"local_field": "discount_percent",
			"field_type": "double"
		},
		{
			"field_name": "discount_price",
			"local_field": "discount_price",
			"field_type": "double"
		},
		{
			"field_name": "dispatch_note_id",
			"local_field": "dispatch_note_id",
			"field_type": "text"
		},
		{
			"field_name": "info",
			"local_field": "info",
			"field_type": "text"
		},
		{
			"field_name": "invoice_id",
			"local_field": "invoice_id",
			"field_type": "text"
		},
		{
			"field_name": "local_price_without_vat",
			"local_field": "local_price_without_vat",
			"field_type": "double"
		},
		{
			"field_name": "order_amount",
			"local_field": "order_amount",
			"field_type": "double"
		},
		{
			"field_name": "order_code_id",
			"local_field": "order_code_id",
			"field_type": "text"
		},
		{
			"field_name": "order_id",
			"local_field": "order_id",
			"field_type": "text"
		},
		{
			"field_name": "price_with_vat",
			"local_field": "price_with_vat",
			"field_type": "double"
		},
		{
			"field_name": "price_without_vat",
			"local_field": "price_without_vat",
			"field_type": "double"
		},
		{
			"field_name": "product_id",
			"local_field": "product_id",
			"field_type": "text"
		},
		{
			"field_name": "production_order_id",
			"local_field": "production_order_id",
			"field_type": "text"
		},
		{
			"field_name": "row_number",
			"local_field": "row_number",
			"field_type": "integer"
		},
		{
			"field_name": "stock_event_id",
			"local_field": "stock_event_id",
			"field_type": "text"
		},
		{
			"field_name": "unit",
			"local_field": "unit",
			"field_type": "text"
		},
		{
			"field_name": "unit_price",
			"local_field": "unit_price",
			"field_type": "double"
		},
		{
			"field_name": "vat_percent",
			"local_field": "vat_percent",
			"field_type": "double"
		},
		{
			"field_name": "vat_price",
			"local_field": "vat_price",
			"field_type": "double"
		},
		{
			"field_name": "waiting_for_delivery",
			"local_field": "waiting_for_delivery",
			"field_type": "double"
		}
	]
}
