From 00ea7562f0952a19ff91b11bf1a5ab645019216f Mon Sep 17 00:00:00 2001 From: CarlNation Date: Wed, 30 Oct 2024 15:58:00 -0400 Subject: [PATCH] CSR-2298 hide tax when 0 / verifying insurance --- src/fmg-components/cart/cart.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/fmg-components/cart/cart.vue b/src/fmg-components/cart/cart.vue index f2799d7be..67bc9f961 100644 --- a/src/fmg-components/cart/cart.vue +++ b/src/fmg-components/cart/cart.vue @@ -110,7 +110,7 @@ {{ subtotalText }} {{ getLineItemAmount(subTotal, showCoverageAsPending) }} -
+
{{ salesTaxText }} {{ getLineItemAmount(salesTax) }}
@@ -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)) {