|
@@ -1001,7 +1001,7 @@ class CalcProgram {
|
|
|
calcEstimateFee(treeNode);
|
|
|
treeNodeTools.initSummaryFee(treeNode);
|
|
|
treeNode.data.summaryFees.totalFee = tf;
|
|
|
- treeNode.data.summaryFees.estimateFee = treeNode.data.feesIndex.estimate.totalFee;
|
|
|
+ treeNode.data.summaryFees.estimateFee = (treeNode.data.feesIndex && treeNode.data.feesIndex.estimate) ? treeNode.data.feesIndex.estimate.totalFee:0;
|
|
|
let bill_safe = cbTools.findBill(fixedFlag.SAFETY_CONSTRUCTION);
|
|
|
treeNode.data.summaryFees.safetyFee = (bill_safe && bill_safe.feesIndex && bill_safe.feesIndex.common)?bill_safe.feesIndex.common.totalFee:0;
|
|
|
let bill_charge = cbTools.findBill(fixedFlag.CHARGE);
|