From 5472b8b3f879f27c3fc3dd006d1ddcd7446e2f45 Mon Sep 17 00:00:00 2001 From: Leah Schumann Date: Mon, 30 Oct 2023 15:48:32 -0400 Subject: [PATCH] Prettified --- src/fmg-components/cart/cart.vue | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/src/fmg-components/cart/cart.vue b/src/fmg-components/cart/cart.vue index cab425157..440823f67 100644 --- a/src/fmg-components/cart/cart.vue +++ b/src/fmg-components/cart/cart.vue @@ -413,23 +413,24 @@ export default { category: cartItemCategories.GLASS_PARTS, cartItemType: cartItemTypes.GLASS_PARTS, isDisplayed: false, - subTotal: (lineItem.kitPrice ?? 0) + - (lineItem.laborAmount ?? 0) + - (lineItem.sellingPrice ?? 0), + subTotal: + (lineItem.kitPrice ?? 0) + + (lineItem.laborAmount ?? 0) + + (lineItem.sellingPrice ?? 0), salesTax: lineItem.salesTax ?? 0, lineItems: [], }; if (lineItem.childParts?.length > 0) { lineItem.childParts.forEach((childPartLineItem) => { - cartItem.subTotal += (childPartLineItem.kitPrice ?? 0) + - (childPartLineItem.laborAmount ?? 0) + - (childPartLineItem.sellingPrice ?? 0); + cartItem.subTotal += + (childPartLineItem.kitPrice ?? 0) + + (childPartLineItem.laborAmount ?? 0) + + (childPartLineItem.sellingPrice ?? 0); cartItem.salesTax += childPartLineItem.salesTax; - }) + }); } - }); } @@ -506,7 +507,11 @@ export default { otherSupportingItemsCartItem() { let cartItem = null; - const otherSupportingItemsLineItems = this.supportingItems.filter(lineItem => lineItem.partNumber != partTypeStrings.MOBILE_FEE && lineItem.partNumber != partTypeStrings.RECYCLE_FEE); + const otherSupportingItemsLineItems = this.supportingItems.filter( + (lineItem) => + lineItem.partNumber != partTypeStrings.MOBILE_FEE && + lineItem.partNumber != partTypeStrings.RECYCLE_FEE + ); if (otherSupportingItemsLineItems.length > 0) { cartItem = {