|  | @@ -261,6 +261,7 @@ module.exports = app => {
 | 
												
													
														
															|  |                  });
 |  |                  });
 | 
												
													
														
															|  |                  for (const sb of stageBills) {
 |  |                  for (const sb of stageBills) {
 | 
												
													
														
															|  |                      const b = bills.find(x => {return x.id === sb.lid});
 |  |                      const b = bills.find(x => {return x.id === sb.lid});
 | 
												
													
														
															|  | 
 |  | +                    if (!b) continue;
 | 
												
													
														
															|  |                      const contract_tp = this.ctx.helper.mul(b.unit_price, sb.contract_qty, newDecimal.tp);
 |  |                      const contract_tp = this.ctx.helper.mul(b.unit_price, sb.contract_qty, newDecimal.tp);
 | 
												
													
														
															|  |                      const qc_tp = this.ctx.helper.mul(b.unit_price, sb.qc_qty, newDecimal.tp);
 |  |                      const qc_tp = this.ctx.helper.mul(b.unit_price, sb.qc_qty, newDecimal.tp);
 | 
												
													
														
															|  |                      if (contract_tp == sb.contract_tp && qc_tp === sb.qc_tp) continue;
 |  |                      if (contract_tp == sb.contract_tp && qc_tp === sb.qc_tp) continue;
 |