+
lineItem.partType.indexOf(partTypeStrings.RECALIBRATION) !== -1
+ isRecalibrationOnOrder() {
+ return containsLineItemWithPartType(
+ partTypeStrings.RECALIBRATION,
+ this.$store.getters.order.lineItems?.supportingItems
);
-
- if (recalLineItem) {
- return true;
- }
- return false;
+ },
+ shouldHideRecalibration() {
+ const recalSettingValue = experimentMixin.methods.getSettingValue(
+ experimentSettings.RECAL_PRICE_REMOVE
+ );
+ return recalSettingValue;
},
showApplePay() {
return baseMixin.methods.showApplePay();
@@ -658,7 +662,7 @@ export default {
return true;
}
} else {
- if (this.isPiaEnabled && this.totalAmountDue > 0 && !this.hasRecal) {
+ if (this.isPiaEnabled && this.totalAmountDue > 0 && !this.isRecalibrationOnOrder) {
return true;
}
}