Fixed calculation issue related to excluding fees from other supporting items cart item
This commit is contained in:
parent
eda0eb7d06
commit
aa44f1798b
2 changed files with 5 additions and 4 deletions
|
|
@ -543,8 +543,9 @@ export default {
|
|||
otherSupportingItemsCartItem() {
|
||||
let cartItem = null;
|
||||
|
||||
const otherSupportingItemsLineItems = this.supportingItems.filter(
|
||||
(lineItem) => lineItem.partType != partTypeStrings.EARLY_BIRD
|
||||
// Don't include fees they are part of the package total
|
||||
let otherSupportingItemsLineItems = baseMixin.methods.filterOutFees(
|
||||
this.supportingItems
|
||||
);
|
||||
|
||||
if (otherSupportingItemsLineItems.length > 0) {
|
||||
|
|
|
|||
|
|
@ -2642,7 +2642,7 @@ function addPricesToLineItems(lineItems, pricingLineItems) {
|
|||
|
||||
function addTaxesToPricedLineItems(pricedLineItems, taxingLineItems = []) {
|
||||
pricedLineItems.forEach((pricedLineItem) => {
|
||||
let lineItemIndex = taxingLineItems.findIndex(
|
||||
const lineItemIndex = taxingLineItems.findIndex(
|
||||
(taxingLineItem) => taxingLineItem.partNumber === pricedLineItem.partNumber
|
||||
);
|
||||
|
||||
|
|
@ -2650,7 +2650,7 @@ function addTaxesToPricedLineItems(pricedLineItems, taxingLineItems = []) {
|
|||
addTaxesToPricedLineItems(pricedLineItem.childParts, taxingLineItems);
|
||||
}
|
||||
|
||||
let taxedLineItem = taxingLineItems.splice(lineItemIndex, 1)[0];
|
||||
const taxedLineItem = taxingLineItems.splice(lineItemIndex, 1)[0];
|
||||
pricedLineItem.salesTax = taxedLineItem?.salesTax ?? 0;
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue