Merge pull request #2062 from Safelite/feature/CSR-2298

CSR-2298 hide tax when 0 / verifying insurance
This commit is contained in:
CarlNation 2024-10-31 08:39:03 -04:00 committed by GitHub
commit e8bd14b4f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -110,7 +110,7 @@
<span>{{ subtotalText }}</span>
<span>{{ getLineItemAmount(subTotal, showCoverageAsPending) }}</span>
</div>
<div class="sales-tax">
<div class="sales-tax" v-show="showSalesTax">
<span>{{ salesTaxText }}</span>
<span>{{ getLineItemAmount(salesTax) }}</span>
</div>
@ -318,6 +318,10 @@ export default {
showCoverageAsVerified() {
return this.showInsuranceCoverageAs === coverageStatus.VERIFIED;
},
showSalesTax() {
const tax = parseFloat(this.salesTax).toFixed(2);
return tax > 0;
},
currentDeductible() {
const deductible = this.insuranceDeductible;
if (!(deductible === 0 || deductible > 0)) {