Pārlūkot izejas kodu

限制上报,bug

MaiXinRong 4 gadi atpakaļ
vecāks
revīzija
35871b8bf0
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      app/lib/ledger.js

+ 2 - 2
app/lib/ledger.js

@@ -618,8 +618,8 @@ class checkData {
         const posRange = this.checkPos.getLedgerPos(bills.id);
         if (posRange && posRange.length > 0) {
             for (const p of posRange) {
-                const posCheckInfo = _.assign({}, checkInfo);
-                for (const ct of option.checkType) {
+                const posCheckInfo = this.ctx.helper._.assign({}, checkInfo);
+                for (const ct of checkType) {
                     if (p[ct + '_limit'] >= 0) {
                         posCheckInfo[ct + '_limit'] = p[ct + '_limit'];
                         posCheckInfo[ct + '_ratio'] = p[ct + '_ratio'];