SSR-1011 cleanup & fix deductible pricing
This commit is contained in:
parent
f8e4e2f7d4
commit
b0a053c48a
2 changed files with 6 additions and 2 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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'}`
|
||||
|
|
|
|||
Loading…
Reference in a new issue