Browse Source

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

MaiXinRong 1 year ago
parent
commit
eb4e286c23
1 changed files with 2 additions and 1 deletions
  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 });
+
             });
         });
     }