From 5852e3980e69d7f82164eece0fbf233b2b07a28c Mon Sep 17 00:00:00 2001 From: CarlNation Date: Tue, 17 Sep 2024 13:32:21 -0400 Subject: [PATCH 1/3] CSR-2102 only drop one of the leading zeroes if the length is > 5. There are some provider numbers that actually start with 00. 00729, MI 48195 zip --- src/store/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/index.js b/src/store/index.js index 9aac79a53..130f1e7c1 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -2423,7 +2423,7 @@ export const actions = { const order = context.getters.order; var providerNumber = order.serviceLocation?.provider?.providerNumber ?? order.serviceLocation?.zipCodeCtu; - if (providerNumber.startsWith("00")) { + if (providerNumber.startsWith("00") && providerNumber.length > 5) { providerNumber = providerNumber.substring(1); } From 19c6c71cbc7da4d9c98909bdcf19335d452c6640 Mon Sep 17 00:00:00 2001 From: Adam Caouette Date: Tue, 17 Sep 2024 13:35:08 -0400 Subject: [PATCH 2/3] CSR-2179: fix typos --- src/fmg-components/cart/cart.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/fmg-components/cart/cart.vue b/src/fmg-components/cart/cart.vue index e841d8849..90c1adf98 100644 --- a/src/fmg-components/cart/cart.vue +++ b/src/fmg-components/cart/cart.vue @@ -1008,15 +1008,15 @@ export default { salesTax() { if (!this.lineItems || this.lineItems.length < 1) return; return this.isInsurance || !this.shouldHideRecalibration - ? baseMixin.methods.getSubTotal(this.lineItems) // calculate with recal (if on order) - : baseMixin.methods.getSubTotal(this.lineItemsWithoutRecal); // calculated without recal + ? baseMixin.methods.getSalesTax(this.lineItems) // calculate with recal (if on order) + : baseMixin.methods.getSalesTax(this.lineItemsWithoutRecal); // calculated without recal }, amountDue() { if (!this.lineItems || this.lineItems.length < 1) return; if (this.showAsPaid) return 0; return this.isInsurance || !this.shouldHideRecalibration - ? baseMixin.methods.getSubTotal(this.lineItems) // calculate with recal (if on order) - : baseMixin.methods.getSubTotal(this.lineItemsWithoutRecal); // calculated without recal + ? baseMixin.methods.getAmountDue(this.lineItems) // calculate with recal (if on order) + : baseMixin.methods.getAmountDue(this.lineItemsWithoutRecal); // calculated without recal }, amountPaid() { if (!this.showAsPaid) { From ff4533cd4396a0c7208ec52f726a622f0560a10e Mon Sep 17 00:00:00 2001 From: Adam Caouette Date: Tue, 17 Sep 2024 13:44:36 -0400 Subject: [PATCH 3/3] CSR-2179: update conditions to show PIA on payment method --- src/layouts/payment-method/payment-method.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/payment-method/payment-method.vue b/src/layouts/payment-method/payment-method.vue index 85fb84a63..ff7e6a8d8 100644 --- a/src/layouts/payment-method/payment-method.vue +++ b/src/layouts/payment-method/payment-method.vue @@ -666,7 +666,7 @@ export default { return true; } } else { - if (this.isPiaEnabled && this.totalAmountDue > 0 && !this.isRecalibrationOnOrder) { + if (this.isPiaEnabled && this.totalAmountDue > 0 && !this.shouldHideRecalibration) { return true; } }