Fixed package price calculation that was including early bird fee, prettified
This commit is contained in:
parent
fd4c287b2d
commit
f0e0c4a3e8
3 changed files with 4 additions and 3 deletions
|
|
@ -5,6 +5,7 @@ const cartItemTypes = {
|
|||
GLASS_PARTS: "GLASS PARTS",
|
||||
RAIN_DEFENSE: "RAIN DEFENSE",
|
||||
RECYCLE_FEE: "RECYCLE FEE",
|
||||
REPLACE_FEE: "REPLACE FEE",
|
||||
MOBILE_FEE: "MOBILE FEE",
|
||||
PROMOS: "PROMOS",
|
||||
EARLY_BIRD: "EARLY BIRD",
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@ export default {
|
|||
};
|
||||
|
||||
promoLineItem.cartItemType = cartItem.cartItemType;
|
||||
cartItem.lineItems.push(lineItem);
|
||||
cartItem.lineItems.push(promoLineItem);
|
||||
|
||||
cartItems.push(cartItem);
|
||||
});
|
||||
|
|
@ -482,7 +482,7 @@ export default {
|
|||
const recycleFeeLineItem = this.supportingItems.find(
|
||||
(supportingItem) => supportingItem.partType == partTypeStrings.REPLACE_FEE
|
||||
);
|
||||
console.log(recycleFeeLineItem);
|
||||
|
||||
if (recycleFeeLineItem) {
|
||||
cartItem = {
|
||||
name: this.recycleFeeCartItemName,
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ export default {
|
|||
filterOutFees(lineItems) {
|
||||
const filteredLineItems = lineItems.filter((item) => {
|
||||
return (
|
||||
!item.partType.includes("FEE") ||
|
||||
(!item.partType.includes("FEE") && !item.partType.includes("EARLY BIRD")) ||
|
||||
(item.partType === "REPAIR FEE" && item.partNumber != "SUPPLIES-REPAIR")
|
||||
);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue