Now pricing all vaps on the order not just available vaps

This commit is contained in:
Leah Schumann 2023-12-07 13:56:07 -05:00
parent 0892af29f5
commit 7886fda833

View file

@ -156,12 +156,14 @@ export default {
const lineItemsFromStore = deepClone(store.getters.order.lineItems); const lineItemsFromStore = deepClone(store.getters.order.lineItems);
const glassParts = lineItemsFromStore.glassParts ?? []; const glassParts = lineItemsFromStore.glassParts ?? [];
const supportingItems = lineItemsFromStore.supportingItems ?? []; const supportingItems = lineItemsFromStore.supportingItems ?? [];
const vaps = lineItemsFromStore.vaps ?? [];
const lineItemsToTax = [ const lineItemsToTax = [
resultMap.rainDefense, resultMap.rainDefense,
...supportingItems, ...supportingItems,
...resultMap.wipers, ...resultMap.wipers,
...glassParts, ...glassParts,
...vaps,
]; ];
const availableVaps = [resultMap.rainDefense, ...resultMap.wipers]; const availableVaps = [resultMap.rainDefense, ...resultMap.wipers];