Merge pull request #1987 from Safelite/feature/Digital/CSR-2228
CSR-2228
This commit is contained in:
commit
404650b573
1 changed files with 6 additions and 2 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Reference in a new issue