CASH-2872: Add promo codes to order subtotal
This commit is contained in:
parent
b81fcaac9d
commit
209d1db92a
1 changed files with 4 additions and 1 deletions
|
|
@ -637,7 +637,7 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
discount += productPrice * -1;
|
discount += productPrice * -1;
|
||||||
subTotal += isQuotePageDiscount ? productPrice : 0;
|
subTotal += productPrice;
|
||||||
} else {
|
} else {
|
||||||
products.push({
|
products.push({
|
||||||
productType: productType,
|
productType: productType,
|
||||||
|
|
@ -737,6 +737,9 @@ export default {
|
||||||
if (quotePageDiscount) {
|
if (quotePageDiscount) {
|
||||||
combinedLineItems = combinedLineItems.concat(quotePageDiscount);
|
combinedLineItems = combinedLineItems.concat(quotePageDiscount);
|
||||||
}
|
}
|
||||||
|
if (lineItems.promos) {
|
||||||
|
combinedLineItems = combinedLineItems.concat(lineItems.promos);
|
||||||
|
}
|
||||||
|
|
||||||
//Remove child Parts if any
|
//Remove child Parts if any
|
||||||
combinedLineItems.forEach((lineItem) => {
|
combinedLineItems.forEach((lineItem) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue