CSR-2303 itac and nocomp should allow recal

CSR-2303 itac and nocomp should allow recal
This commit is contained in:
CarlNation 2024-11-04 11:43:09 -05:00
parent f2a07535b6
commit 982c0dc322
3 changed files with 6 additions and 8 deletions

View file

@ -177,10 +177,7 @@ export default {
return containsRecalParts(this?.lineItems);
},
shouldHideRecalibration() {
return (
this.getSettingValue(experimentSettings.RECAL_PRICE_REMOVE)?.toLowerCase() ===
"true" && this.isRecalibrationOnOrder
);
return this.$store.getters.shouldHideRecalibration;
},
ShowCart() {
if (this.isPia && this.submittedOrder?.settledTenderAmount == 0) {

View file

@ -596,10 +596,7 @@ export default {
return containsRecalParts(order.lineItems);
},
shouldHideRecalibration() {
return (
this.getSettingValue(experimentSettings.RECAL_PRICE_REMOVE)?.toLowerCase() ===
"true" && this.isRecalibrationOnOrder
);
return this.$store.getters.shouldHideRecalibration;
},
showApplePay() {
return baseMixin.methods.showApplePay();

View file

@ -819,6 +819,10 @@ export const getters = {
return false;
},
shouldHideRecalibration: (state) => {
if (state.order.policy.isNoComp || state.order.policy.isItac) {
return false;
}
return (
experimentMixin.methods
.getSettingValue(experimentSettings.RECAL_PRICE_REMOVE)