diff --git a/src/mixins/base-mixin.js b/src/mixins/base-mixin.js index 0cbeec5b..3816d5c2 100644 --- a/src/mixins/base-mixin.js +++ b/src/mixins/base-mixin.js @@ -67,6 +67,10 @@ export default { }); }, getAmountDue(lineItems) { + if (!useMainStore().isNoComp && !useMainStore().policy.isITAC) { + return useMainStore().order.currentDeductible; + } + let amountDue = 0; if (lineItems.glassParts) { amountDue += this.getTotalPriceOfAllLineItemsAndChildParts( diff --git a/src/store/index.js b/src/store/index.js index 840994a5..a93d5b3d 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1145,7 +1145,7 @@ export const useMainStore = defineStore({ this.applicationUser.crmCustomerId = response.crmCustomerId.toString(); }, - saveSession(options) { + saveSession({ submitAfterSave }) { const { vehicle, damage, policy, customer, contactInfo, payment, lineItems, serviceLocation, schedule } = this.order; @@ -1277,7 +1277,7 @@ export const useMainStore = defineStore({ eon: this.order.eon, submitToMainframe: !!this.order.referralNumber, loadedFromDupeCheck, - submitAfterSave: !!options.submitAfterSave + submitAfterSave: !!submitAfterSave }, additionalSuccessEventDataHandler: () => `Email provided: ${customer.emailAddress ? 'true' : 'false'}`