|  | @@ -135,7 +135,7 @@ module.exports = app => {
 | 
	
		
			
				|  |  |                  if (d.arrive_qty !== undefined) nd.arrive_qty = this.ctx.helper.round(d.arrive_qty, decimal.qty);
 | 
	
		
			
				|  |  |                  if (d.arrive_tp !== undefined) nd.arrive_tp = this.ctx.helper.round(d.arrive_tp, tpDecimal);
 | 
	
		
			
				|  |  |                  let unit_price = od.unit_price, ex_tax_up = od.ex_tax_up;
 | 
	
		
			
				|  |  | -                if (nd.arrive_qty !== undefined || nd.arrive_tp !== undefined) {
 | 
	
		
			
				|  |  | +                if (nd.arrive_qty !== undefined || nd.arrive_tp !== undefined || nd.tax !== undefined) {
 | 
	
		
			
				|  |  |                      const tp = nd.arrive_tp !== undefined ? nd.arrive_tp : od.arrive_tp;
 | 
	
		
			
				|  |  |                      const qty = nd.arrive_qty !== undefined ? nd.arrive_qty : od.arrive_qty;
 | 
	
		
			
				|  |  |                      const extraPre = nd.tax !== undefined ? 1 + this.ctx.helper.div(nd.tax, 100, 2) : 1 + this.ctx.helper.div(od.tax, 100, 2);
 |