CSR-1975 | Wiper promo bug on Quote fix
This commit is contained in:
parent
bbbc66f124
commit
a78030b117
2 changed files with 3 additions and 1 deletions
|
|
@ -43,7 +43,6 @@
|
||||||
class="small mt-4"
|
class="small mt-4"
|
||||||
v-model="lineItems"
|
v-model="lineItems"
|
||||||
:availableVaps="availableVaps"
|
:availableVaps="availableVaps"
|
||||||
:availableLineItems="availableLineItems"
|
|
||||||
pageName="quote"
|
pageName="quote"
|
||||||
:taxPromos="false"
|
:taxPromos="false"
|
||||||
modalWidgetName="PromoModalWidget" />
|
modalWidgetName="PromoModalWidget" />
|
||||||
|
|
|
||||||
|
|
@ -2310,6 +2310,9 @@ export const actions = {
|
||||||
) {
|
) {
|
||||||
const order = context.getters.order;
|
const order = context.getters.order;
|
||||||
lineItemsToUse = lineItemsToUse ?? order.lineItems;
|
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);
|
addGuidToLineItemsIfNotAlreadyThere(addableVaps);
|
||||||
const requestObject = {
|
const requestObject = {
|
||||||
promoCode: promoCode,
|
promoCode: promoCode,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue