|
@@ -39,7 +39,9 @@ class ChangeAnalysis {
|
|
|
b.qty = _.toNumber(b.samount);
|
|
|
b.valid_qty = ZhCalc.sub(b.qty, b.used_qty);
|
|
|
b.tp = ZhCalc.round(ZhCalc.mul(b.qty, b.unit_price), tenderInfo.decimal.tp);
|
|
|
- b.pos = _.filter(change.detail.curUsedBills, { cbid: b.id });
|
|
|
+ b.pos = change.detail.curUsedBills.filter(x => {
|
|
|
+ return x.cbid === b.id && x.qty;
|
|
|
+ });
|
|
|
b.cur_qty = 0;
|
|
|
for (const p of b.pos) {
|
|
|
// 查询最底层项目节
|