Browse Source

限制上报,bug

MaiXinRong 4 năm trước cách đây
mục cha
commit
35871b8bf0
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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'];