CSR-1083 | Formatting
This commit is contained in:
parent
c3b113d301
commit
3e0d4a789f
1 changed files with 9 additions and 5 deletions
|
|
@ -64,10 +64,12 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
getTierOnePackagePrice(lineItems) {
|
getTierOnePackagePrice(lineItems) {
|
||||||
let lineItemsToPrice = lineItems.filter(lineItem => {
|
let lineItemsToPrice = lineItems.filter((lineItem) => {
|
||||||
return lineItem.partType != partTypeStrings.FRONT_WIPER &&
|
return (
|
||||||
lineItem.partType != partTypeStrings.REAR_WIPER &&
|
lineItem.partType != partTypeStrings.FRONT_WIPER &&
|
||||||
lineItem.partType != partTypeStrings.RAIN_DEFENSE
|
lineItem.partType != partTypeStrings.REAR_WIPER &&
|
||||||
|
lineItem.partType != partTypeStrings.RAIN_DEFENSE
|
||||||
|
);
|
||||||
});
|
});
|
||||||
let totalPrice = this.getTotalPriceOfAllLineItemsAndChildParts(lineItemsToPrice);
|
let totalPrice = this.getTotalPriceOfAllLineItemsAndChildParts(lineItemsToPrice);
|
||||||
return totalPrice;
|
return totalPrice;
|
||||||
|
|
@ -86,7 +88,9 @@ export default {
|
||||||
lineItems.forEach((lineItem) => {
|
lineItems.forEach((lineItem) => {
|
||||||
totalPrice += this.getTotalLineItemPrice(lineItem);
|
totalPrice += this.getTotalLineItemPrice(lineItem);
|
||||||
if (lineItem.childParts) {
|
if (lineItem.childParts) {
|
||||||
totalPrice += this.getTotalPriceOfAllLineItemsAndChildParts(lineItem.childParts);
|
totalPrice += this.getTotalPriceOfAllLineItemsAndChildParts(
|
||||||
|
lineItem.childParts
|
||||||
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return totalPrice;
|
return totalPrice;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue