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",
|
GLASS_PARTS: "GLASS PARTS",
|
||||||
RAIN_DEFENSE: "RAIN DEFENSE",
|
RAIN_DEFENSE: "RAIN DEFENSE",
|
||||||
RECYCLE_FEE: "RECYCLE FEE",
|
RECYCLE_FEE: "RECYCLE FEE",
|
||||||
|
REPLACE_FEE: "REPLACE FEE",
|
||||||
MOBILE_FEE: "MOBILE FEE",
|
MOBILE_FEE: "MOBILE FEE",
|
||||||
PROMOS: "PROMOS",
|
PROMOS: "PROMOS",
|
||||||
EARLY_BIRD: "EARLY BIRD",
|
EARLY_BIRD: "EARLY BIRD",
|
||||||
|
|
|
||||||
|
|
@ -233,7 +233,7 @@ export default {
|
||||||
};
|
};
|
||||||
|
|
||||||
promoLineItem.cartItemType = cartItem.cartItemType;
|
promoLineItem.cartItemType = cartItem.cartItemType;
|
||||||
cartItem.lineItems.push(lineItem);
|
cartItem.lineItems.push(promoLineItem);
|
||||||
|
|
||||||
cartItems.push(cartItem);
|
cartItems.push(cartItem);
|
||||||
});
|
});
|
||||||
|
|
@ -482,7 +482,7 @@ export default {
|
||||||
const recycleFeeLineItem = this.supportingItems.find(
|
const recycleFeeLineItem = this.supportingItems.find(
|
||||||
(supportingItem) => supportingItem.partType == partTypeStrings.REPLACE_FEE
|
(supportingItem) => supportingItem.partType == partTypeStrings.REPLACE_FEE
|
||||||
);
|
);
|
||||||
console.log(recycleFeeLineItem);
|
|
||||||
if (recycleFeeLineItem) {
|
if (recycleFeeLineItem) {
|
||||||
cartItem = {
|
cartItem = {
|
||||||
name: this.recycleFeeCartItemName,
|
name: this.recycleFeeCartItemName,
|
||||||
|
|
|
||||||
|
|
@ -95,7 +95,7 @@ export default {
|
||||||
filterOutFees(lineItems) {
|
filterOutFees(lineItems) {
|
||||||
const filteredLineItems = lineItems.filter((item) => {
|
const filteredLineItems = lineItems.filter((item) => {
|
||||||
return (
|
return (
|
||||||
!item.partType.includes("FEE") ||
|
(!item.partType.includes("FEE") && !item.partType.includes("EARLY BIRD")) ||
|
||||||
(item.partType === "REPAIR FEE" && item.partNumber != "SUPPLIES-REPAIR")
|
(item.partType === "REPAIR FEE" && item.partNumber != "SUPPLIES-REPAIR")
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue