MaiXinRong hace 1 año
padre
commit
877e7cc654
Se han modificado 1 ficheros con 0 adiciones y 25 borrados
  1. 0 25
      app/lib/ledger.js

+ 0 - 25
app/lib/ledger.js

@@ -1119,31 +1119,6 @@ class checkData {
                     }
                 }
             }
-            const checkData = {},
-                calcData = {};
-            for (const field of fields) {
-                checkData[field] = b[field] ? b[field] : 0;
-            }
-            for (const p of pr) {
-                for (const field of fields) {
-                    calcData[field] = this.ctx.helper.add(calcData[field], p[field]);
-                }
-            }
-            if (!this.ctx.helper._.isMatch(checkData, calcData)) {
-                this.checkResult.error.push({
-                    ledger_id: b.ledger_id,
-                    b_code: b.b_code,
-                    name: b.name,
-                    errorType: 'qty',
-                    error: { checkData, calcData },
-                });
-                if (!this.checkResult.source.bills.find(x => {return x.ledger_id === b.ledger_id})) {
-                    this.checkResult.source.bills.push(b);
-                    for (const p of pr) {
-                        this.checkResult.source.pos.push(p);
-                    }
-                }
-            }
         }
     }
 }