Browse Source

变更令超计检查调整

MaiXinRong 1 year ago
parent
commit
6abcee6588
2 changed files with 4 additions and 3 deletions
  1. 3 3
      app/lib/ledger.js
  2. 1 0
      app/public/js/stage.js

+ 3 - 3
app/lib/ledger.js

@@ -1115,9 +1115,9 @@ class checkData {
             if (!c.used) return;
             c.bills.forEach(b => {
                 if (!b.cur_used) return;
-                const qtyDecimal = helper.findDecimal(changeBills.unit);
-                const limitQty = helper.mul(b.qty, helper.div(changeBills.delimit, 100, 2), qtyDecimal);
-                if (Math.abs(b.used_qty) > Math.abs(limitQty)) error.push({ b_code: b.code, name: b.name, errorType: 'change_over', memo: c.code, lid: b.lid });
+                const qtyDecimal = helper.findDecimal(b.unit);
+                const limitQty = helper.mul(b.qty, helper.div(b.delimit, 100, 2), qtyDecimal);
+                if (Math.abs(b.used_qty) > Math.abs(limitQty)) error.push({ b_code: b.code, name: b.name, errorType: 'change_over', memo: c.code, lid: b.lid, used_qty: b.used_qty, limit_qty: limitQty });
 
             });
         });

+ 1 - 0
app/public/js/stage.js

@@ -242,6 +242,7 @@ $(document).ready(() => {
         over: { enable: 1, isTz: checkTzMeasureType(), },
         limit3f: { enable: 1, checkType: [], status: thirdParty, },
         minus_cb: { enable: hintMinusCb },
+        // change_over: { enable: 1 },
     };
     if (tender.s2b_gxby_check) checkOption.limit3f.checkType.push('gxby');
     if (tender.s2b_dagl_check) checkOption.limit3f.checkType.push('dagl');