{
	"info": "https://www.ag-grid.com/javascript-grid-cell-styling/#gsc.tab=0",
	"options": {
		"grid_option": {
			"enable_filter": false
		},
		"main_table": "ordr"
	},
	"columns_not_in_use": [
		{
			"width": 30,
			"enterable": 1,
			"variable": "test_valueGetter",
			"valueGetter": "data.ordr.unit_price * 10 + '%'",
			"name": "Määrä* 10",
			"cellClassRules": {
				"red": "x > 0"
			}
		},
		{
			"field": "ord.currency_id",
			"width": 35,
			"name": "Valuutta",
			"cellClass": "grey"
		},
		{
			"field": "ordr.delivered_before",
			"width": 70,
			"name": "ordr.delivered_before"
		},
		{
			"field": "ordr.delivery_amount",
			"width": 70,
			"name": "ordr.delivery_amount"
		},
		{
			"field": "ordr.waiting_for_delivery",
			"width": 70,
			"name": "ordr.waiting_for_delivery"
		},
		{
			"field": "ordr.json_data.order_amount_2",
			"width": 70,
			"name": "ordr.json_data.order_amount_2"
		},
		{
			"field": "co.json_data.price_group",
			"width": 70,
			"name": "co.json_data.price_group"
		},
		{
			"field": "co.order_code_id",
			"width": 70,
			"name": "co.order_code_id"
		},
		{
			"field": "ord.currency_id",
			"width": 70,
			"name": "ord.currency_id"
		}
	],
	"columns": [
		{
			"width": 30,
			"enterable": 1,
			"field": "ordr.row_number",
			"name": "Rivi",
			"cellClassRules": {
				"": "x < 0",
				"grey": "x == 0",
				"blue": "x > 0"
			}
		},
		{
			"width": 88,
			"enterable": false,
			"cellClass": "grey",
			"cellEditorParamsXX": {
				"dropdown_field": "value",
				"values": "dropdown.product",
				"set_dropdown_show_field": "ordr.description"
			},
			"cellEditorXX": "dropdownSelect",
			"name": "Tuote",
			"field": "ordr.product_id"
		},
		{
			"field": "ordr.description",
			"width": 220,
			"name": "Selitys",
			"enterable": 1
		},
		{
			"width": 30,
			"enterable": 1,
			"field": "ordr.order_amount",
			"name": "Määrä",
			"cellClassRules": {
				"blue": "x > 0"
			}
		},
		{
			"width": 40,
			"enterable": 1,
			"field": "ordr.unit_price",
			"format": "%'.2f",
			"name": "á-hinta",
			"cellClassRules": {
				"blue": "x > 0"
			}
		},
		{
			"field": "ordr.unit",
			"width": 35,
			"name": "Yksikkö",
			"cellClass": "grey"
		},
		{
			"field": "ordr.order_id",
			"width": 55,
			"name": "Myyntitilaus",
			"cellClass": "grey"
		},
		{
			"field": "ordr.dispatch_note_id",
			"width": 55,
			"name": "Lähetyslista",
			"cellClass": "grey"
		},
		{
			"field": "ordr.json_data.order_amount_2",
			"width": 40,
			"name": "Määrä 2",
			"hide": false
		},
		{
			"field": "ordr.record_id",
			"width": 210,
			"name": "id",
			"hide": false
		},
		{
			"field": "ordr.order_code_id",
			"width": 70,
			"name": "ordr.order_code_id"
		},
		{
			"field": "ordr.delivery_state",
			"width": 70,
			"name": "ordr.delivery_state",
			"hide": true
		},
		{
			"field": "ord.record_id",
			"width": 210,
			"name": "order id",
			"hide": true
		}
	],
	"name": "grid/manager/order/order_row/sales/sales_packing_material/column.json"
}