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