|
@@ -755,7 +755,7 @@ class checkData {
|
|
|
const check = [];
|
|
|
if (tender.s2b_gxby_limit) check.push('gxby');
|
|
|
if (tender.s2b_dagl_limit) check.push('dagl');
|
|
|
- if (check.length === 0) return result;
|
|
|
+ if (check.length === 0) return;
|
|
|
|
|
|
for (const b of this.checkBills.children) {
|
|
|
this._recursiveCheckBills3fLimit(check, b, {});
|
|
@@ -845,7 +845,7 @@ class checkData {
|
|
|
if (isTz && posRange.length > 0) {
|
|
|
if (posRange.length > 0) {
|
|
|
for (const p of posRange) {
|
|
|
- const end_contract_qty = this.add(p.pre_contract_qty, p.contract_qty);
|
|
|
+ const end_contract_qty = this.ctx.helper.add(p.pre_contract_qty, p.contract_qty);
|
|
|
if (!p.quantity) return !!end_contract_qty;
|
|
|
return p.quantity > 0
|
|
|
? end_contract_qty > p.quantity
|
|
@@ -854,8 +854,8 @@ class checkData {
|
|
|
return false;
|
|
|
}
|
|
|
} else {
|
|
|
- const end_contract_qty = this.add(bills.contract_qty, bills.pre_contract_qty);
|
|
|
- const end_contract_tp = this.add(bills.contract_tp, bills.pre_contract_tp);
|
|
|
+ const end_contract_qty = this.ctx.helper.add(bills.contract_qty, bills.pre_contract_qty);
|
|
|
+ const end_contract_tp = this.ctx.helper.add(bills.contract_tp, bills.pre_contract_tp);
|
|
|
if (bills.is_tp) {
|
|
|
const compare_tp = isTz ? bills.total_price : bills.deal_tp;
|
|
|
if (!compare_tp) return !!end_contract_tp;
|