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); return containsRecalParts(this?.lineItems);
}, },
shouldHideRecalibration() { shouldHideRecalibration() {
return ( return this.$store.getters.shouldHideRecalibration;
this.getSettingValue(experimentSettings.RECAL_PRICE_REMOVE)?.toLowerCase() ===
"true" && this.isRecalibrationOnOrder
);
}, },
ShowCart() { ShowCart() {
if (this.isPia && this.submittedOrder?.settledTenderAmount == 0) { if (this.isPia && this.submittedOrder?.settledTenderAmount == 0) {

View file

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

View file

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