Merge pull request #1539 from Safelite/feature/CSR-1388-tech-review-changes

Feature/csr 1388 tech review changes
This commit is contained in:
Leah Schumann 2023-11-16 09:21:38 -05:00 committed by GitHub
commit a73dfc604b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View file

@ -546,8 +546,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) {

View file

@ -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;
});