CSR-2298 hide tax when 0 / verifying insurance

This commit is contained in:
CarlNation 2024-10-30 15:58:00 -04:00
parent 9a3038c66c
commit 00ea7562f0

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)) {