Merge pull request #1939 from Safelite/feature/CSR-1981

Feature/csr 1981
This commit is contained in:
CarlNation 2024-08-14 10:52:28 -04:00 committed by GitHub
commit 17980066d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -61,7 +61,7 @@
ref="alertMobileFeeFree"
class="my-5"
cmsWidgetName="AlertMobileFeeFreeWidget"
v-if="isServiceableMobile && !isInsurance"
v-if="showMobileFreeAlert"
alertClass="alert-success" />
</div>
</div>
@ -314,6 +314,21 @@ export default {
return false;
}
},
showMobileFreeAlert() {
var hasMobileFee = true;
if (
this.mobileFeePart?.laborAmount == 0 &&
this.mobileFeePart?.sellingPrice == 0 &&
this.mobileFeePart?.kitPrice == 0
) {
hasMobileFee = false;
}
if (this.isServiceableMobile && !this.isInsurance && !hasMobileFee) {
return true;
}
return false;
},
isServiceableInshop() {
if (this.isRecalibrationServiceableInshop !== null) {
return this.isGlassServiceableInshop && this.isRecalibrationServiceableInshop;