{
	"name": "form/nc/erp-sync/cxml/column/order_row-sales.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": [
		{
			"change_compare": false,
			"link_field": "ord.order_id",
			"name": "Row",
			"name_fi": "Rivi",
			"record_type": "sales",
			"variable": "idx"
		},
		{
			"name": "Status",
			"name_fi": "Tila",
			"variable": "change_status",
			"editable": false,
			"width": 60
		},
		{
			"name": "Change field",
			"name_fi": "Muutoskentät",
			"variable": "change_field",
			"editable": false,
			"width": 130
		},
		{
			"import": false,
			"export": false,
			"field": "ordr.record_type",
			"name_fi": "Type",
			"width": 90,
			"organization_id": { "4d": { "load": false } }
		},
		{
			"field": "ordr.order_id",
			"name": "Sales ord.",
			"name_fi": "Myyntitil.",
			"width": 90
		},
		{
			"field": "ordr.product_id",
			"name": "Product code",
			"name_fi": "Tuote koodi",
			"width": 110
		},
		{
			"field": "ordr.json_data.project_id",
			"name": "Project ID",
			"name_fi": "Project id",
			"width": 80
		},
		{
			"field": "ordr.description",
			"name": "Description",
			"name_fi": "Kuvaus",
			"width": 120
		},
		{
			"field": "ord.company_id",
			"name": "Customer",
			"name_fi": "Asiakas",
			"width": 90
		},
		{
			"field": "ordr.order_amount",
			"name": "Amount",
			"name_fi": "Määrä",
			"width": 70
		},
		{
			"field": "ordr.unit",
			"name": "Row unit",
			"name_fi": "Riviyksikkö",
			"width": 70
		},
		{
			"field": "pr.stock_unit",
			"name": "Unit",
			"name_fi": "Yksikkö",
			"width": 70
		},
		{
			"field": "ordr.delivery_date",
			"name": "Deli. date.",
			"name_fi": "Toim. päivä",
			"width": 120
		},
		{
			"field": "ordr.unit_price",
			"name": "Unit price",
			"name_fi": "á hinta",
			"width": 90
		},
		{
			"field": "ordr.price_without_vat",
			"name": "Price vat 0%",
			"name_fi": "hinta alv 0%",
			"width": 120
		},
		{
			"field": "ordr.vat_price",
			"name": "VAT",
			"name_fi": "alv",
			"width": 80
		},
		{
			"change_compare": false,
			"variable": "ord.json_data.error",
			"name": "Error",
			"width": 100,
			"cell_class_rules": {
				"darkred": "x && x != ''"
			}
		},
		{
			"change_compare": false,
			"variable": "ord.json_data.dtd",
			"name": "DTD path",
			"width": 450
		},
		{
			"change_compare": false,
			"field": "ordr.json_data.customer_row_number",
			"name": "Line#",
			"name_fi": "Rivinro",
			"width": 50
		},
		{
			"change_compare": false,
			"field": "ordr.json_data.supplier_product_code",
			"organization_id": { "4d": { "field": "pr.json_data.supplier_product_code" } },
			"name": "Supplier part",
			"name_fi": "Toim. tuote",
			"width": 100
		},
		{
			"change_compare": false,
			"field": "ordr.json_data.tax_category",
			"organization_id": { "4d": { "load": false } },
			"name": "Tax cat",
			"name_fi": "Veroluokka",
			"width": 50
		},
		{
			"change_compare": false,
			"field": "ordr.json_data.commodity_code",
			"organization_id": { "4d": { "load": false } },
			"name": "Commodity",
			"name_fi": "Commodity",
			"width": 70
		},
		{
			"change_compare": false,
			"field": "ordr.json_data.commodity_description",
			"organization_id": { "4d": { "load": false } },
			"name": "Commodity desc",
			"name_fi": "Commodity kuvaus",
			"width": 140
		},
		{
			"change_compare": false,
			"field": "ordr.json_data.confirmation_instruction",
			"organization_id": { "4d": { "load": false } },
			"name": "OC",
			"name_fi": "OC",
			"width": 50
		},
		{
			"change_compare": false,
			"field": "ordr.json_data.ship_notice_instruction",
			"organization_id": { "4d": { "load": false } },
			"name": "ASN",
			"name_fi": "ASN",
			"width": 50
		},
		{
			"change_compare": false,
			"field": "ordr.json_data.invoice_instruction",
			"organization_id": { "4d": { "load": false } },
			"name": "Invoice",
			"name_fi": "Lasku",
			"width": 60
		},
		{
			"change_compare": false,
			"field": "ordr.json_data.buyer_planner_code",
			"organization_id": { "4d": { "load": false } },
			"name": "Planner",
			"name_fi": "Suunnittelija",
			"width": 50
		},
		{
			"change_compare": false,
			"field": "ordr.json_data.requires_batch",
			"organization_id": { "4d": { "load": false } },
			"name": "Batch",
			"name_fi": "Erä",
			"width": 40
		},
		{
			"change_compare": false,
			"field": "ordr.json_data.conversion_factor",
			"organization_id": { "4d": { "load": false } },
			"name": "Conv.",
			"name_fi": "Muunnos",
			"width": 40
		},
		{
			"change_compare": false,
			"field": "ordr.json_data.planned_acceptance_days",
			"organization_id": { "4d": { "load": false } },
			"name": "Insp. days",
			"name_fi": "Tark. pv",
			"width": 60
		},
		{
			"change_compare": false,
			"field": "ordr.json_data.receiving_type",
			"organization_id": { "4d": { "load": false } },
			"name": "Recv type",
			"name_fi": "Vastaanottotyyppi",
			"width": 60
		},
		{
			"change_compare": false,
			"field": "ordr.record_id",
			"hide": true,
			"name": "Record ID",
			"name_fi": "Record id",
			"width": 110
		}
	],
	"columns_not_in_use": [
		{
			"field": "ord.order_state",
			"name": "State",
			"name_fi": "Tila",
			"width": 80
		},
		{
			"field": "ordr.row_number",
			"name": "Row",
			"name_fi": "Rivi",
			"width": 50
		},
		{
			"field": "ordr.json_data.partial_delivery_number",
			"name": "Partial delivery",
			"name_fi": "Osatoim.",
			"width": 70
		},
		{
			"field": "co.name",
			"name": "Customer name",
			"name_fi": "As. nimi",
			"width": 120
		},
		{
			"field": "ord.vat_price",
			"name": "VAT",
			"name_fi": "Alv",
			"width": 80
		}
	]
}
