CASH-1713 | Add prices to all items from store
This commit is contained in:
parent
b8f7085b38
commit
15321506ea
1 changed files with 10 additions and 0 deletions
|
|
@ -269,6 +269,16 @@ export default {
|
|||
availableVaps,
|
||||
lineItemsForCart
|
||||
);
|
||||
// Add prices to all line items, sometimes they are not there when they come back from heritage
|
||||
// See CASH-1713 for details
|
||||
lineItemsForCart.glassParts = addPricesToLineItems(
|
||||
lineItemsForCart.glassParts ?? [],
|
||||
pricedLineItems
|
||||
);
|
||||
lineItemsForCart.supportingItems = addPricesToLineItems(
|
||||
lineItemsForCart.supportingItems ?? [],
|
||||
pricedLineItems
|
||||
);
|
||||
lineItemsForCart.vaps = addPricesToLineItems(lineItemsForCart.vaps ?? [], pricedLineItems);
|
||||
lineItemsForCart.vaps.push(...vapsToAddToCart);
|
||||
// Tax items on order
|
||||
|
|
|
|||
Loading…
Reference in a new issue