{
	"name": "form/nc/nc-stock/column/product.json",
	"option": {
		"suppress_menu": true,
		"grid_option": {
			"cell_class_rules": {
				"nc-grid-cell-changed": "colDef.field === 'pr.json_data.available' && x !== data.pr?.calc?.available_old || colDef.field === 'pr.json_data.reserved' && x !== data.pr?.calc?.reserved_old || colDef.field === 'pr.json_data.fixed' && x !== data.pr?.calc?.fixed_old",
				"nc-grid-row-deleted": "colDef.field === 'pr.json_data.available' && x < 0"
			}
		}
	},
	"column": [
		{
			"variable": "idx",
			"width": 120,
			"name_fi": "",
			"link_field": "pr.product_id",
			"record_type": ""
		},
		{
			"field": "pr.product_id",
			"width": 200,
			"name_fi": "Tuote"
		},
		{
			"field": "pr.product_id",
			"width": 55,
			"name_fi": "Työ"
		},
		{
			"field": "pr.name",
			"width": 240,
			"name_fi": "Nimi"
		},
		{
			"field": "pr.production_type",
			"width": 70,
			"name_fi": "V=1/T",
			"format": "%d"
		},
		{
			"field": "pr.json_data.stock_balance",
			"width": 140,
			"name_fi": "Var. saldo",
			"format": "%'.2f"
		},
		{
			"field": "pr.stock_unit",
			"width": 65,
			"name_fi": "Yks."
		},
		{
			"field": "pr.json_data.fixed",
			"width": 160,
			"name_fi": "Kiinnitetty",
			"format": "%'.2f"
		},
		{
			"field": "pr.json_data.reserved",
			"width": 65,
			"name_fi": "Varattu",
			"format": "%'.2f"
		},
		{
			"field": "pr.json_data.available",
			"width": 180,
			"name_fi": "Käytettävissä",
			"format": "%'.2f"
		},
		{
			"variable": "pr.calc.fixed_old",
			"width": 160,
			"name_fi": "(Kiinnit.)",
			"format": "%'.2f"
		},
		{
			"variable": "pr?.calc?.reserved_old",
			"width": 65,
			"name_fi": "(Varattu)",
			"format": "%'.2f"
		},
		{
			"variable": "pr.calc.available_old",
			"width": 140,
			"name_fi": "(Käytett.)",
			"format": "%'.2f"
		},
		{
			"field": "pr.record_id",
			"width": 120,
			"name_fi": "Id"
		}
	]
}
