{
	"name": "grid/manager/product/product_stock/project_material.json",
	"columns_not_in_use": [
		{
			"width": 20,
			"name": "√",
			"variable": "checkmark"
		},
		{
			"width": 50,
			"field": "prst_original_amount",
			"name2": "Projektin vanha määrä",
			"name": "Edell. tarve",
			"format": "%'.2f"
		}
	],
	"columns": [
		{
			"field": "prst_product_id",
			"width": 70,
			"name": "Materiaali",
			"enterable": false
		},
		{
			"field": "pr.name",
			"width": 170,
			"name": "Nimi"
		},
		{
			"width": 50,
			"format": "%'.2f",
			"variable": "calculated_amount",
			"cellEditorParamsXX": {
				"dropdown_field": "value",
				"values": "dropdown.product",
				"set_dropdown_show_field": "ordr.description"
			},
			"name2": "Projektin määrä",
			"name": "Tarve",
			"cellClassRulesXX": {
				"": "x < 0",
				"grey": "x == 0",
				"blue": "x > 0"
			}
		},
		{
			"field": "pr.stock_unit",
			"width": 30,
			"name": "Yks."
		},
		{
			"format": "%'.2f",
			"variable": "stock_balance",
			"name": "Varastossa",
			"name2": "Projektin varastossa",
			"width": 50
		},
		{
			"format": "%'.2f",
			"variable": "coming_amount",
			"name": "Tulossa",
			"name2": "Projektille tulossa",
			"width": 50
		},
		{
			"width": 50,
			"cellClassRulesFunction": {
				"blue": "param.node.data.pr.stock_balance < param.node.data.need_amount"
			},
			"variable": "need_amount",
			"name2": "Laskennallinen tilaustarve",
			"format": "%'.2f",
			"name": "Tilaustarve",
			"cellClassRules": {
				"black": "x > 0",
				"white": "x <= 0"
			}
		},
		{
			"width": 50,
			"enterable": true,
			"variable": "order_amount",
			"format": "%'.2f",
			"name": "Tilataan",
			"cellClassRules": {
				"white": "x <= 0",
				"blue": "x > 0"
			}
		},
		{
			"width": 50,
			"field": "pr.minimum_order_amount",
			"name2": "Minimihankintaerä",
			"name": "Min. h.erä",
			"format": "%'.2f"
		},
		{
			"width": 50,
			"field": "pr.stock_balance",
			"name2": "Varastossa yht.",
			"name": "Saldo yht.",
			"format": "%'.2f"
		},
		{
			"field": "pr.default_supplier_id",
			"width": 70,
			"name": "Toimittaja",
			"enterable": true
		},
		{
			"field": "prst_project_id",
			"width": 50,
			"name": "Projekti"
		},
		{
			"field": "prst_stock_id",
			"width": 60,
			"name": "Varasto id",
			"hide": true
		},
		{
			"hide": true,
			"width": 70,
			"name": "Rivin tyyppi",
			"variable": "row_type"
		},
		{
			"field": "prst_record_id",
			"width": 60,
			"name": "Record id",
			"hide": true
		},
		{
			"field": "pr.product_type",
			"width": 70,
			"name": "Tuotteen tyyppi",
			"hideZ": true
		}
	],
	"options": {
		"grid_option": {
			"header_height2": 46
		}
	}
}