{
	"name": "report/work_in_progress_cost/subtotal.json",
	"total": {
		"calculate": [
			["calc_work_self_cost", "+"],
			["calc_material_self_cost", "+"],
			["calc_subcontract_self_cost", "+"],
			["reduced_self_cost", "+"],
			["calc_self_cost", "+"],
			["calc_sales_price", "+"],
			["calc_profit_percent", "formula"]
		]
	},
	"subtotal": [
		{
			"field": "pr.product_group",
			"sort_direction": ">",
			"calculate": [
				["pr.product_group", ""],
				["calc_work_self_cost", "+"],
				["calc_material_self_cost", "+"],
				["calc_subcontract_self_cost", "+"],
				["calc_self_cost", "+"],
				["reduced_self_cost", "+"],
				["calc_sales_price", "+"],
				["calc_profit_percent", "formula"]
			],
			"page_break": false
		}
	],
	"order": [
		{ "field": "pro.company_id", "sort_direction": ">" },
		{ "field": "pro.production_order_id", "sort_direction": ">" }
	]
}
