Browse Source

永久材料计算相关

MaiXinRong 11 months ago
parent
commit
821bdbc511
1 changed files with 1 additions and 1 deletions
  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);