CSR-2228
Service package discount for CJ
This commit is contained in:
parent
d7c3d64f7b
commit
bf8cf2d8bb
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