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 glassParts = lineItemsFromStore.glassParts ?? [];
const supportingItems = lineItemsFromStore.supportingItems ?? [];
const vaps = lineItemsFromStore.vaps ?? [];
const lineItemsToTax = [
resultMap.rainDefense,
...supportingItems,
...resultMap.wipers,
...glassParts,
...vaps,
];
const availableVaps = [resultMap.rainDefense, ...resultMap.wipers];