{
	"name": "plugin/nc-calc-server/column/order_row-invoice.json",
	"option": {
		"grid_option": {
			"cell_class_rules": {
				"nc-grid-cell-changed": "data.link_rec && colDef.change_compare !== false && recDataDifferent(data.link_rec, colDef, x)"
			},
			"row_class_rules": {
				"nc-grid-row-changed": "data.change_status == 'changed'",
				"nc-grid-row-deleted": "data.change_status == 'deleted'",
				"nc-grid-row-equal": "data.change_status == 'equal'",
				"nc-grid-row-new": "data.change_status == 'new'"
			}
		}
	},
	"column": [
		{
			"icon": "nc-link-icon",
			"link_field": "ordr.record_id",
			"name": "Row",
			"name_fi": "Rivi",
			"record_type": "sales",
			"variable": "idx"
		},
		{
			"export": false,
			"editable": false,
			"name": "Status",
			"name_fi": "Tila",
			"variable": "change_status",
			"width": 65
		},
		{
			"export": false,
			"name": "Change field",
			"variable": "change_field",
			"editable": false,
			"width": 130
		},
		{
			"field": "ordr.invoice_id",
			"width": 80
		},
		{
			"field": "ordr.order_id",
			"name": "Sales order ID",
			"name_fi": "Myyntitilaus ID",
			"width": 160
		},
		{
			"field": "ordr.delivery_date",
			"width": 110
		},
		{
			"field": "ordr.product_id",
			"width": 180
		},
		{
			"field": "ordr.description",
			"width": 250
		},
		{
			"field": "ordr.row_number",
			"width": 100
		},
		{
			"field": "ordr.order_code_id",
			"name": "Sales code",
			"name_fi": "Myyntikoodi",
			"width": 95
		},
		{
			"field": "ordr.delivery_amount",
			"name": "Amount",
			"name_fi": "Määrä",
			"width": 80
		},
		{
			"field": "ordr.order_amount",
			"name": "Order amount",
			"name_fi": "Tilattu määrä",
			"width": 100
		},
		{
			"field": "ordr.unit_price",
			"name": "Unit price",
			"name_fi": "á hinta",
			"width": 80
		},
		{
			"field": "ordr.price_without_vat",
			"name": "Price excl. VAT",
			"name_fi": "Hinta alv 0%",
			"width": 130
		},
		{
			"field": "ordr.vat_price",
			"name": "VAT",
			"name_fi": "ALV",
			"width": 80
		},
		{
			"field": "ordr.price_with_vat",
			"name": "Total price",
			"name_fi": "Kokonaishinta",
			"width": 110
		},
		{
			"field": "ordr.info",
			"name": "Info",
			"name_fi": "Info",
			"width": 300
		},
		{
			"field": "ordr.dispatch_note_id",
			"name": "Delivery note ID",
			"name_fi": "Lähetyslista id",
			"width": 110
		},
		{
			"field": "ordr.discount_percent",
			"width": 140
		},
		{
			"field": "ordr.discount_price",
			"width": 140
		},
		{
			"field": "ordr.record_id",
			"name": "Record ID",
			"name_fi": "Record id",
			"width": 110
		},
		{
			"field": "ordr.vat_percent",
			"name": "VAT %",
			"name_fi": "ALV %",
			"width": 90
		}
	],
	"columns_not_in_use": [
		{
			"field": "ordc.json_data.vat_code",
			"organization_id": { "finvoice": { "load": false } },
			"name": "VAT type",
			"name_fi": "Alv kanta",
			"width": 90
		},
		{
			"field": "ordr.json_data.dispatch_note_id",
			"name": "Delivery note",
			"name_fi": "Lähetyslista",
			"width": 110
		},
		{
			"field": "ordr.json_data.project_id",
			"name": "Project ID",
			"name_fi": "Project Id",
			"width": 120
		},
		{
			"field": "co.name",
			"name": "Customer name",
			"name_fi": "As. nimi",
			"width": 120
		},
		{
			"field": "ord.vat_price",
			"name": "VAT",
			"name_fi": "ALV",
			"width": 160
		}
	]
}
