소스 검색

限制上报,bug

MaiXinRong 4 년 전
부모
커밋
35871b8bf0
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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'];