Przeglądaj źródła

过滤取消调用的情况

MaiXinRong 2 lat temu
rodzic
commit
5981da4865
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      app/lib/ledger.js

+ 1 - 0
app/lib/ledger.js

@@ -964,6 +964,7 @@ class checkData {
             cb.qty = parseFloat(cb.samount);
         });
         finalStageChange.forEach(sc => {
+            if (!sc.qty) return;
             const c = changeIndex[sc.cid];
             if (c) {
                 c.used = true;