{
	"name": "form/nc/report/nc-report/reclamation/column/reclamation.json",
	"option": {
		"cell_class_rules": {},
		"grid_option": {
			"row_class_rules": {}
		}
	},
	"column": [
		{
			"link_field": "rcl.reclamation_id",
			"record_type": "",
			"variable": "idx",
			"width": 65
		},
		{
			"name": "Reclamation",
			"name_fi": "Tunnus",
			"width": 110,
			"field": "rcl.reclamation_id",
			"external_field": "rcl.reclamation_id"
		},
		{
			"name": "Create date",
			"name_fi": "Luontipäivä",
			"type": "date",
			"field": "rcl.create_time",
			"width": 100,
			"external_field": "rcl.creation_date"
		},
		{
			"name": "Type",
			"name_fi": "Tyyppi",
			"field": "rcl.reclamation_type",
			"width": 75,
			"external_field": "rcl.type_"
		},
		{
			"name": "State",
			"name_fi": "Tila",
			"field": "rcl.reclamation_state",
			"width": 75,
			"external_field": "rcl.state"
		},
		{
			"name": "Calc. type",
			"name_fi": "Lask. ty.",
			"field": "rcl.calculation_type",
			"width": 95,
			"external_field": "rcl.calculation_type"
		},
		{
			"name_fi": "Myyntitilaus",
			"field": "rcl.sales_order_id",
			"width": 103,
			"external_field": "rcl.sales_order_id"
		},
		{
			"name_fi": "Virheell. määrä",
			"type": "double",
			"field": "rcl.failed_amount",
			"width": 120,
			"footerValue": "==Sum",
			"external_field": "rcl.failed_amount"
		},
		{
			"name_fi": "Korjauskulujen hinta yht",
			"type": "double",
			"field": "rcl.json_data.repair_price_total",
			"width": 120,
			"footerValue": "==Sum",
			"external_field": "rcl.repair_price_total"
		},
		{
			"name_fi": "Materiaalin OK",
			"type": "double",
			"field": "rcl.material_self_cost",
			"width": 120,
			"footerValue": "==Sum",
			"external_field": "rcl.material_self_cost"
		},
		{
			"name_fi": "Kaikki kustannukset yht.",
			"type": "double",
			"field": "rcl.total_charges",
			"width": 120,
			"footerValue": "==Sum",
			"external_field": "rcl.total_charges"
		},
		{
			"name_fi": "Korjattavien määrä",
			"type": "double",
			"field": "rcl.repair_amount",
			"width": 120,
			"footerValue": "==Sum",
			"external_field": "rcl.repair_amount"
		},
		{
			"name_fi": "Hylättyjen määrä",
			"type": "double",
			"field": "rcl.rejected_amount",
			"width": 120,
			"footerValue": "==Sum",
			"external_field": "rcl.rejected_amount"
		},
		{
			"name_fi": "Käsittelijä",
			"field": "rcl.json_data.handler_id",
			"width": 85,
			"external_field": "rcl.handler_id"
		},
		{
			"name": "Person",
			"name_fi": "Tekijä",
			"field": "rcl.created_from",
			"width": 60,
			"external_field": "rcl.created_from"
		},
		{
			"name_fi": "Virheen hav. kuorm. ryh.",
			"field": "rcl.fault_found_resource_id",
			"width": 175,
			"external_field": "rcl.fault_found_load_group_id"
		},
		{
			"name": "Company",
			"name_fi": "Asiakas",
			"field": "rcl.company_id",
			"width": 75,
			"external_field": "rcl.customer_id"
		},
		{
			"name_fi": "Nimi",
			"field": "co.name",
			"width": 278,
			"external_field": "co.name"
		},
		{
			"name_fi": "Toimittajan koko nimi ja osoite",
			"type": "text",
			"field": "rcl.json_data.supplier_text_address",
			"width": 250,
			"external_field": "rcl.supplier_text_address"
		},
		{
			"name_fi": "Virhetyyppi",
			"field": "rcl.fault_type",
			"width": 280,
			"external_field": "rcl.fault_type"
		},
		{
			"name_fi": "Tuote",
			"field": "rcl.product_id",
			"width": 180,
			"external_field": "rcl.product_id"
		},
		{
			"name_fi": "Tuoteryhmä",
			"field": "pr.product_group",
			"width": 180,
			"external_field": "pr.product_group"
		},
		{
			"name_fi": "Ostotuote",
			"name-": "Tuotetunnus",
			"field": "rcl.json_data.purchase_product_id",
			"width": 180,
			"external_field": "rcl.purchase_product_id"
		},
		{
			"name_fi": "Virheen syy",
			"field": "rcl.fault_reason",
			"width": 250,
			"external_field": "rcl.fault_reason"
		},
		{
			"name_fi": "Loppukäs. pv",
			"type": "date",
			"field": "rcl.finished_date",
			"width": 114,
			"external_field": "rcl.finished_date"
		},
		{
			"name_fi": "Virheen kuvaus",
			"type": "text",
			"field": "rcl.json_data.purchase_description",
			"width": 264,
			"external_field": "rcl.purchase_description"
		},
		{
			"name_fi": "Asiakkaan kuvaus virheen syistä",
			"type": "text",
			"field": "rcl.customer_description",
			"width": 285,
			"external_field": "rcl.customer_description"
		},
		{
			"name_fi": "Työntekijän kuvaus virheen syistä",
			"type": "text",
			"field": "rcl.employee_description",
			"width": 311,
			"external_field": "rcl.employee_description"
		},
		{
			"name_fi": "Toistumisen estävät toimenpiteet",
			"type": "text",
			"field": "rcl.measures_to_avoid_faults",
			"width": 332,
			"external_field": "rcl.measures_to_avoid_faults"
		},
		{
			"name_fi": "Käsittelijän kuvaus virheen syistä",
			"type": "text",
			"field": "rcl.handler_description",
			"width": 255,
			"external_field": "rcl.handler_description"
		},
		{
			"name_fi": "Virh. tehnyt kuor.",
			"field": "rcl.json_data.fault_made_resource_id",
			"width": 130,
			"external_field": "rcl.fault_made_load_group_id"
		},
		{
			"name_fi": "Valmistuserä",
			"field": "rcl.production_order_id",
			"width": 130,
			"external_field": "rcl.production_lot"
		},
		{
			"name_fi": "Lisätietoja",
			"type": "text",
			"field": "rcl.info",
			"width": 267,
			"external_field": "rcl.info"
		},
		{
			"name_fi": "Vuosi",
			"variable": "calc.year",
			"width": 85
		},
		{
			"name_fi": "Kuukausi",
			"variable": "calc.month",
			"width": 85
		}
	]
}
