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) {
|
getAmountDue(lineItems) {
|
||||||
|
if (!useMainStore().isNoComp && !useMainStore().policy.isITAC) {
|
||||||
|
return useMainStore().order.currentDeductible;
|
||||||
|
}
|
||||||
|
|
||||||
let amountDue = 0;
|
let amountDue = 0;
|
||||||
if (lineItems.glassParts) {
|
if (lineItems.glassParts) {
|
||||||
amountDue += this.getTotalPriceOfAllLineItemsAndChildParts(
|
amountDue += this.getTotalPriceOfAllLineItemsAndChildParts(
|
||||||
|
|
|
||||||
|
|
@ -1145,7 +1145,7 @@ export const useMainStore = defineStore({
|
||||||
this.applicationUser.crmCustomerId = response.crmCustomerId.toString();
|
this.applicationUser.crmCustomerId = response.crmCustomerId.toString();
|
||||||
},
|
},
|
||||||
|
|
||||||
saveSession(options) {
|
saveSession({ submitAfterSave }) {
|
||||||
const { vehicle, damage, policy, customer, contactInfo, payment,
|
const { vehicle, damage, policy, customer, contactInfo, payment,
|
||||||
lineItems, serviceLocation, schedule } = this.order;
|
lineItems, serviceLocation, schedule } = this.order;
|
||||||
|
|
||||||
|
|
@ -1277,7 +1277,7 @@ export const useMainStore = defineStore({
|
||||||
eon: this.order.eon,
|
eon: this.order.eon,
|
||||||
submitToMainframe: !!this.order.referralNumber,
|
submitToMainframe: !!this.order.referralNumber,
|
||||||
loadedFromDupeCheck,
|
loadedFromDupeCheck,
|
||||||
submitAfterSave: !!options.submitAfterSave
|
submitAfterSave: !!submitAfterSave
|
||||||
},
|
},
|
||||||
additionalSuccessEventDataHandler: () =>
|
additionalSuccessEventDataHandler: () =>
|
||||||
`Email provided: ${customer.emailAddress ? 'true' : 'false'}`
|
`Email provided: ${customer.emailAddress ? 'true' : 'false'}`
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue