فهرست منبع

甲供材料,往期已使用时,金额不计算问题

MaiXinRong 5 سال پیش
والد
کامیت
67e38e9974
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      app/service/stage_jgcl.js

+ 2 - 0
app/service/stage_jgcl.js

@@ -127,6 +127,8 @@ module.exports = app => {
                 if (od.pre_used === null || od.pre_used === undefined || od.pre_used === 0) {
                     if (d.unit !== undefined) nd.unit = d.unit;
                     nd.unit_price = d.unit_price !== undefined ? this.ctx.helper.round(d.unit_price, info.decimal.up) : od.unit_price;
+                } else {
+                    nd.unit_price = od.unit_price;
                 }
                 const precision = this.ctx.helper.findPrecision(info.precision, d.unit_price);
                 if (d.arrive_qty !== undefined) {