| 
					
				 | 
			
			
				@@ -196,7 +196,7 @@ module.exports = app => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 d.qc_qty = this.round(insertData.qc_qty, precision.value); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 d.qc_tp = this.ctx.helper.mul(d.qc_qty, ledgerData.unit_price, info.decimal.tp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (insertData.qc_minus_qty !== undefined) d.qc_minus_qty = this.round(insertData.qc_minus_qty, precision.value); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            d.qc_minus_qty = insertData.qc_minus_qty ? this.round(insertData.qc_minus_qty, precision.value) : 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (insertData.postil) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 d.postil = insertData.postil; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -276,6 +276,7 @@ module.exports = app => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             const posGather = await this.ctx.service.stagePos.getPosGather(tid, sid, lid, transaction); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (!posGather) { return; } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            posGather.qc_minus_qty = posGather.qc_minus_qty || 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             const precision = this.ctx.helper.findPrecision(info.precision, ledgerBills.unit); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // 计算 
			 |