CASH-2872: Add promo codes to order subtotal

This commit is contained in:
credelinghuys 2026-06-26 11:44:25 -04:00
parent b81fcaac9d
commit 209d1db92a

View file

@ -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) => {