瀏覽代碼

修复调差新建一期bug

laiguoran 5 年之前
父節點
當前提交
a7eaff4266
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/service/material_list.js

+ 1 - 1
app/service/material_list.js

@@ -232,7 +232,7 @@ module.exports = app => {
             for (const ml of materialListData) {
                 // 获取小计值
                 let gather_qty = null;
-                if (ml.mx_id !== null) {
+                if (ml.mx_id !== null && ml.mx_id !== '') {
                     gather_qty = await this.ctx.service.stagePos.getGatherQtyByMaterial(ml.tid, newMaterial.stage_id, ml.gcl_id, ml.mx_id);
                 } else {
                     gather_qty = await this.ctx.service.stageBills.getGatherQtyByMaterial(ml.tid, newMaterial.stage_id, ml.gcl_id);