|
@@ -366,17 +366,17 @@ const gclCompareModel = (function () {
|
|
|
for (const node of data) {
|
|
|
node.b_code = node.code;
|
|
|
const gcl = getGclNode(node);
|
|
|
- if (!d.quantity || !d.unit_price) continue;
|
|
|
+ if (!node.quantity || !node.unit_price) continue;
|
|
|
gcl.deal_bills_qty = node.quantity || 0;
|
|
|
gcl.deal_bills_tp = node.total_price || 0;
|
|
|
|
|
|
for (const c of otherChapter) {
|
|
|
if (c.cType === 41 || c.cType === 11) {
|
|
|
- c.deal_bills_tp = ZhCalc.add(c.deal_bills_tp, d.total_price);
|
|
|
+ c.deal_bills_tp = ZhCalc.add(c.deal_bills_tp, node.total_price);
|
|
|
}
|
|
|
}
|
|
|
- const c = _getGclChapter(gclChapter, d);
|
|
|
- c.deal_bills_tp = ZhCalc.add(c.deal_bills_tp, d.total_price);
|
|
|
+ const c = _getGclChapter(gclChapter, node);
|
|
|
+ c.deal_bills_tp = ZhCalc.add(c.deal_bills_tp, node.total_price);
|
|
|
}
|
|
|
}
|
|
|
}
|