Merge pull request #1987 from Safelite/feature/Digital/CSR-2228

CSR-2228
This commit is contained in:
hiteshkumar87 2024-09-20 13:44:35 +05:30 committed by GitHub
commit 404650b573
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -416,11 +416,15 @@ export default {
.getTotalPriceOfAllLineItemsAndChildParts([part], false)
.toFixed(2);
if (productSku == "DISCOUNT") {
if (productSku == "DISCOUNT" || productType == "SERVICE PACKAGE DISCOUNT") {
if (coupon) {
coupon += ",";
}
coupon += productSku;
if (productSku == "DISCOUNT") {
coupon += promoCode;
} else {
coupon += productSku;
}
discount = discount + parseFloat(productPrice) * -1;
} else {
products.push({