瀏覽代碼

修复变更通过审批bug

ellisran 1 年之前
父節點
當前提交
6edd0ca42d
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/service/change.js

+ 2 - 2
app/service/change.js

@@ -962,8 +962,8 @@ module.exports = app => {
                             audit_amount: audit_amount.join(','),
                         };
                         if (nextAudits.length === 0) {
-                            list_update.samount = bl.spamount;
-                            list_update.checked_amount = bl.spamount;
+                            list_update.samount = bl.spamount || 0;
+                            list_update.checked_amount = bl.spamount || 0;
                             list_update.checked_price = this.ctx.helper.mul(bl.unit_price, list_update.checked_amount, tp_decimal);
                             // 统计计价和不计价金额
                             valuation_tp = bl.is_valuation ? this.ctx.helper.add(valuation_tp, list_update.checked_price) : valuation_tp;