diff --git a/src/fmg-components/cart/cart.vue b/src/fmg-components/cart/cart.vue index e7ae777a0..0249d5c16 100644 --- a/src/fmg-components/cart/cart.vue +++ b/src/fmg-components/cart/cart.vue @@ -187,6 +187,7 @@ export default { insuranceDeductible: Number, insuranceCompanyName: String, showInsuranceCoverageAs: String, + shouldHideRecalibration: Boolean, }, data() { return { @@ -438,14 +439,13 @@ export default { packagePrice() { let packagePrice = 0; - if (!this.isInsurance) { - // CASH ONLY + if (!this.isInsurance && this.shouldHideRecalibration) { // Update packagePrice if Cash only && is part of RemoveRecal experiment packagePrice = baseMixin.methods.getTierOnePackagePrice( baseMixin.methods.filterOutFees( - baseMixin.methods.filterOutRecalibration(this.availableLineItems) + baseMixin.methods.filterOutRecalibration(this.availableLineItems) // Strip out recal before filtering out fees ) ); - } else if (!this.showCoverageAsVerified && !this.showCoverageAsPending) { + } else if (!this.showCoverageAsVerified && !this.showCoverageAsPending) { // Update packagePrice if is verified insurance OR if Cash && not part of RemoveRecal experiment packagePrice = baseMixin.methods.getTierOnePackagePrice( baseMixin.methods.filterOutFees(this.availableLineItems) ); @@ -1000,22 +1000,22 @@ export default { }, subTotal() { if (!this.lineItems || this.lineItems.length < 1) return; - return this.isInsurance - ? baseMixin.methods.getSubTotal(this.lineItems) - : baseMixin.methods.getSubTotal(this.lineItemsWithoutRecal); + return this.isInsurance || !this.shouldHideRecalibration + ? baseMixin.methods.getSubTotal(this.lineItems) // calculate with recal (if on order) + : baseMixin.methods.getSubTotal(this.lineItemsWithoutRecal); // calculated without recal }, salesTax() { if (!this.lineItems || this.lineItems.length < 1) return; - return this.isInsurance - ? baseMixin.methods.getSalesTax(this.lineItems) - : baseMixin.methods.getSalesTax(this.lineItemsWithoutRecal); + return this.isInsurance || !this.shouldHideRecalibration + ? baseMixin.methods.getSubTotal(this.lineItems) // calculate with recal (if on order) + : baseMixin.methods.getSubTotal(this.lineItemsWithoutRecal); // calculated without recal }, amountDue() { if (!this.lineItems || this.lineItems.length < 1) return; if (this.showAsPaid) return 0; - return this.isInsurance - ? baseMixin.methods.getAmountDue(this.lineItems) - : baseMixin.methods.getAmountDue(this.lineItemsWithoutRecal); + return this.isInsurance || !this.shouldHideRecalibration + ? baseMixin.methods.getSubTotal(this.lineItems) // calculate with recal (if on order) + : baseMixin.methods.getSubTotal(this.lineItemsWithoutRecal); // calculated without recal }, amountPaid() { if (!this.showAsPaid) { diff --git a/src/layouts/confirmation/confirmation.vue b/src/layouts/confirmation/confirmation.vue index 4eddb8b16..df3a3dfe7 100644 --- a/src/layouts/confirmation/confirmation.vue +++ b/src/layouts/confirmation/confirmation.vue @@ -62,7 +62,8 @@ servicePackageOptionsCmsName="ServicePackageTitle" :insuranceDeductible="currentDeductible" :insuranceCompanyName="insuranceCompanyName" - :showInsuranceCoverageAs="showInsuranceCoverageAs" /> + :showInsuranceCoverageAs="showInsuranceCoverageAs" + :shouldHideRecalibration="shouldHideRecalibration" />