SSR-1167 Coverage Statement cleanup
This commit is contained in:
parent
f63c4e0c7a
commit
e6bfe4af7a
1 changed files with 7 additions and 7 deletions
|
|
@ -365,18 +365,18 @@ export default {
|
||||||
return !!useMainStore().vehicle.carId;
|
return !!useMainStore().vehicle.carId;
|
||||||
},
|
},
|
||||||
async initializeComponent() {
|
async initializeComponent() {
|
||||||
|
// TODO this should be determined based on the result of the ITAC price call
|
||||||
|
// TODO it seems that ITAC now requires claim registration calls. If this call fails
|
||||||
|
if (this.mainStore.isDeductible && this.deductibleValue > this.totalServicePrice) {
|
||||||
|
this.mainStore.updateCoverageType(coverageType.ITAC);
|
||||||
|
}
|
||||||
|
|
||||||
if (this.shouldRegisterClaim) {
|
if (this.shouldRegisterClaim) {
|
||||||
await this.mainStore.registerClaim();
|
await this.mainStore.registerClaim();
|
||||||
} else if (!this.mainStore.isClaimRegistrationRequired) {
|
} else if (!this.mainStore.isClaimRegistrationRequired) {
|
||||||
this.mainStore.updateCoverageStatus(coverageStatuses.VERIFIED);
|
this.mainStore.updateCoverageStatus(coverageStatuses.VERIFIED);
|
||||||
}
|
}
|
||||||
// TODO this should be determined based on the result of the ITAC price call
|
|
||||||
// TODO it seems that ITAC now requires claim registration calls. If this call fails
|
|
||||||
console.log(`${this.mainStore.isDeductible} - ${this.deductibleValue} > ${this.totalServicePrice}`);
|
|
||||||
if (this.mainStore.isDeductible && this.deductibleValue > this.totalServicePrice) {
|
|
||||||
console.log('Do update0');
|
|
||||||
this.mainStore.updateCoverageType(coverageType.ITAC);
|
|
||||||
}
|
|
||||||
showIssLoadingModal(false);
|
showIssLoadingModal(false);
|
||||||
},
|
},
|
||||||
async navigateForward() {
|
async navigateForward() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue