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;
|
||||
subTotal += isQuotePageDiscount ? productPrice : 0;
|
||||
subTotal += productPrice;
|
||||
} else {
|
||||
products.push({
|
||||
productType: productType,
|
||||
|
|
@ -737,6 +737,9 @@ export default {
|
|||
if (quotePageDiscount) {
|
||||
combinedLineItems = combinedLineItems.concat(quotePageDiscount);
|
||||
}
|
||||
if (lineItems.promos) {
|
||||
combinedLineItems = combinedLineItems.concat(lineItems.promos);
|
||||
}
|
||||
|
||||
//Remove child Parts if any
|
||||
combinedLineItems.forEach((lineItem) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue