소스 검색

永久材料计算相关

MaiXinRong 11 달 전
부모
커밋
821bdbc511
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/service/stage_yjcl.js

+ 1 - 1
app/service/stage_yjcl.js

@@ -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);