CSR-1975 | Wiper promo bug on Quote fix

This commit is contained in:
Scott Kiener 2024-02-14 09:44:23 -05:00
parent bbbc66f124
commit a78030b117
2 changed files with 3 additions and 1 deletions

View file

@ -43,7 +43,6 @@
class="small mt-4"
v-model="lineItems"
:availableVaps="availableVaps"
:availableLineItems="availableLineItems"
pageName="quote"
:taxPromos="false"
modalWidgetName="PromoModalWidget" />

View file

@ -2310,6 +2310,9 @@ export const actions = {
) {
const order = context.getters.order;
lineItemsToUse = lineItemsToUse ?? order.lineItems;
addGuidToLineItemsIfNotAlreadyThere(lineItemsToUse.vaps);
syncLineItemIds(addableVaps, lineItemsToUse.vaps);
// addableVaps still won't have IDs if they weren't already in lineItemsToUse
addGuidToLineItemsIfNotAlreadyThere(addableVaps);
const requestObject = {
promoCode: promoCode,