소스 검색

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

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) {