瀏覽代碼

变更超计判断,负变更相关

MaiXinRong 1 年之前
父節點
當前提交
eb4e286c23
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/lib/ledger.js

+ 2 - 1
app/lib/ledger.js

@@ -1115,7 +1115,8 @@ class checkData {
             if (!c.used) return;
             c.bills.forEach(b => {
                 if (!b.cur_used) return;
-                if (b.used_qty > b.qty) error.push({ b_code: b.code, name: b.name, errorType: 'change_over', memo: c.code, lid: b.lid });
+                if (Math.abs(b.used_qty) > Math.abs(b.qty)) error.push({ b_code: b.code, name: b.name, errorType: 'change_over', memo: c.code, lid: b.lid });
+
             });
         });
     }