CSR-2410: fix

This commit is contained in:
Adam Caouette 2024-11-22 16:00:27 -05:00
parent ae4ec7808f
commit b55c6e8b7c

View file

@ -749,8 +749,12 @@ export default {
recycleFeeCartItemName() {
return this.getCmsContent("RecycleFeeTextWidget", "Text");
},
requiresRecycleFeeCartItem() {
return !this.isRepair;
showRecycleFeeCartItem() {
if (!this.isInsurance || this.isItac || this.isNoComp) { // CASH, ITAC, NOCOMP ORDERS
return !this.isRepair;
} else {
return false;
}
},
recycleFeeCartItem() {
let cartItem = null;
@ -759,7 +763,7 @@ export default {
(supportingItem) => supportingItem.partType == partTypeStrings.REPLACE_FEE
);
if (!recycleFeeLineItem && this.requiresRecycleFeeCartItem) {
if (!recycleFeeLineItem && this.showRecycleFeeCartItem) {
recycleFeeLineItem = {
partNumber: partTypeStrings.RECYCLE_FEE,
partType: partTypeStrings.REPLACE_FEE,