| 
					
				 | 
			
			
				@@ -107,7 +107,11 @@ module.exports = app => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 rootId: -1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 keys: ['id', 'tender_id', 'ledger_id'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 stageId: 'id', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                calcFields: calcFields || ['deal_tp', 'total_price', 'contract_tp', 'qc_tp', 'contract_pc_tp', 'qc_pc_tp', 'pc_tp', 'gather_tp', 'pre_contract_tp', 'pre_qc_tp', 'pre_gather_tp', 'final_1_tp'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                calcFields: calcFields || ['deal_tp', 'total_price', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    'contract_tp', 'qc_tp', 'contract_pc_tp', 'qc_pc_tp', 'pc_tp', 'gather_tp', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    'pre_contract_tp', 'pre_qc_tp', 'pre_gather_tp', 'final_1_tp', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    'end_contract_pc_tp', 'end_qc_pc_tp', 'end_pc_tp', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                ], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 calc: function (node, helper, decimal) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     if (node.children && node.children.length === 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         node.pre_gather_qty = helper.add(node.pre_contract_qty, node.pre_qc_qty); 
			 |