|
@@ -1115,9 +1115,9 @@ class checkData {
|
|
|
if (!c.used) return;
|
|
|
c.bills.forEach(b => {
|
|
|
if (!b.cur_used) return;
|
|
|
- const qtyDecimal = helper.findDecimal(changeBills.unit);
|
|
|
- const limitQty = helper.mul(b.qty, helper.div(changeBills.delimit, 100, 2), qtyDecimal);
|
|
|
- if (Math.abs(b.used_qty) > Math.abs(limitQty)) error.push({ b_code: b.code, name: b.name, errorType: 'change_over', memo: c.code, lid: b.lid });
|
|
|
+ const qtyDecimal = helper.findDecimal(b.unit);
|
|
|
+ const limitQty = helper.mul(b.qty, helper.div(b.delimit, 100, 2), qtyDecimal);
|
|
|
+ if (Math.abs(b.used_qty) > Math.abs(limitQty)) error.push({ b_code: b.code, name: b.name, errorType: 'change_over', memo: c.code, lid: b.lid, used_qty: b.used_qty, limit_qty: limitQty });
|
|
|
|
|
|
});
|
|
|
});
|