CSR-2098 handle case where verified insurance with deductible
This commit is contained in:
CarlNation 2024-05-20 09:39:37 -04:00
parent c11c9490fc
commit e03dfd65cc

View file

@ -152,6 +152,11 @@ export default {
if (lineItems.promos) {
amountDue += this.getTotalPriceOfAllLineItemsAndChildParts(lineItems.promos, true);
}
if (store.getters.payment.insuranceCoverage.isVerified && !store.getters.policy.isNoComp && !store.getters.policy.isItac) {
amountDue += store.getters.policy.currentDeductible;
}
return ((amountDue * 100) / 100).toFixed(2);
},
scrollToPageTop() {