Formatting

This commit is contained in:
Sneha 2023-11-13 16:16:06 +05:30
parent ab507a9280
commit fa16142627
2 changed files with 5 additions and 5 deletions

View file

@ -230,7 +230,7 @@ export default {
(promoLineItem?.laborAmount ?? 0) + (promoLineItem?.laborAmount ?? 0) +
(promoLineItem?.sellingPrice ?? 0), (promoLineItem?.sellingPrice ?? 0),
salesTax: promoLineItem?.salesTax, salesTax: promoLineItem?.salesTax,
lineItems:[], lineItems: [],
}; };
promoLineItem.cartItemType = cartItem.cartItemType; promoLineItem.cartItemType = cartItem.cartItemType;

View file

@ -181,7 +181,7 @@ export default {
this.displayInvalidPromoAlert = true; this.displayInvalidPromoAlert = true;
this.focusOnPromoInput(); this.focusOnPromoInput();
this.resetModalButtonStyle(); this.resetModalButtonStyle();
} else { } else {
const pricedLineItemsToTax = []; const pricedLineItemsToTax = [];
pricedLineItemsToTax.push(...promoCodeData.promoCode); pricedLineItemsToTax.push(...promoCodeData.promoCode);
const taxedLineItems = const taxedLineItems =
@ -197,7 +197,7 @@ export default {
serviceLocationState: store.getters.order.serviceLocation.state, serviceLocationState: store.getters.order.serviceLocation.state,
serviceLocationZipCode: serviceLocationZipCode:
store.getters.order.serviceLocation.zipCode, store.getters.order.serviceLocation.zipCode,
pricedLineItems:pricedLineItemsToTax, pricedLineItems: pricedLineItemsToTax,
}, },
"payment-method", "payment-method",
false false
@ -212,7 +212,7 @@ export default {
taxedLineItems, taxedLineItems,
this.availableVaps this.availableVaps
); );
const getVaps = getVapsThatNeedToBeAddedToSatisfyPromos( const getVaps = getVapsThatNeedToBeAddedToSatisfyPromos(
promoCodeData.promoCode, promoCodeData.promoCode,
taxedVaps, taxedVaps,
@ -229,7 +229,7 @@ export default {
type: "alert-success", type: "alert-success",
isDismissible: true, isDismissible: true,
}); });
this.promoCode = ""; this.promoCode = "";
} }
} else { } else {
this.displayInvalidPromoAlert = true; this.displayInvalidPromoAlert = true;