CSR-1042 | Changing how price is displayed on Quote
Removing fees from cash pricing
This commit is contained in:
parent
447a24a356
commit
e9da017ae9
3 changed files with 11 additions and 11 deletions
|
|
@ -159,22 +159,13 @@ export default {
|
|||
return defaultIsInsuranceSelectedValue;
|
||||
} else {
|
||||
return availableLineItems
|
||||
? baseMixin.methods.getTierOnePackagePrice(availableLineItems) > 500
|
||||
? baseMixin.methods.getTierOnePackagePrice(baseMixin.methods.filterOutFees(availableLineItems)) > 500
|
||||
: null;
|
||||
}
|
||||
},
|
||||
vapsItemsSelectedAction(vapsItemsSelected) {
|
||||
this.selectedVaps = vapsItemsSelected;
|
||||
},
|
||||
filterOutFees(currentSupportingItems) {
|
||||
const filteredSupportingItems = currentSupportingItems.filter((item) => {
|
||||
return (
|
||||
!item.partType.includes("FEE") ||
|
||||
(item.partType === "REPAIR FEE" && item.partNumber != "SUPPLIES-REPAIR")
|
||||
);
|
||||
});
|
||||
return filteredSupportingItems;
|
||||
},
|
||||
backButtonAction() {
|
||||
vehicleQuestionsMixin.methods.navigateBack(this);
|
||||
},
|
||||
|
|
|
|||
|
|
@ -165,7 +165,7 @@ export default {
|
|||
getPackagePrice(packageName) {
|
||||
let priceFloat = this.isInsuranceSelected
|
||||
? 0
|
||||
: baseMixin.methods.getTierOnePackagePrice(this.nullSafeAvailableLineItems);
|
||||
: baseMixin.methods.getTierOnePackagePrice(baseMixin.methods.filterOutFees(this.nullSafeAvailableLineItems));
|
||||
if (packageName === packageNames.TIER_TWO) {
|
||||
priceFloat += this.getTierTwoPackageVapsPrice();
|
||||
} else if (packageName === packageNames.TIER_THREE) {
|
||||
|
|
|
|||
|
|
@ -77,6 +77,15 @@ export default {
|
|||
});
|
||||
return totalPrice;
|
||||
},
|
||||
filterOutFees(lineItems) {
|
||||
const filteredLineItems = lineItems.filter((item) => {
|
||||
return (
|
||||
!item.partType.includes("FEE") ||
|
||||
(item.partType === "REPAIR FEE" && item.partNumber != "SUPPLIES-REPAIR")
|
||||
);
|
||||
});
|
||||
return filteredLineItems;
|
||||
},
|
||||
getTotalLineItemPrice(lineItem) {
|
||||
return lineItem.kitPrice + lineItem.laborAmount + lineItem.sellingPrice;
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue