diff --git a/src/helpers/pricing-helper.js b/src/helpers/pricing-helper.js index 56f11336e..c470aaf31 100644 --- a/src/helpers/pricing-helper.js +++ b/src/helpers/pricing-helper.js @@ -14,7 +14,7 @@ export function getAmountDue(lineItemsObject, includeTax = true) { const order = baseMixin?.methods?.hasSubmittedOrder() ? baseMixin?.methods?.getSubmittedOrder() : store.getters.order; - + if (lineItemsObject?.glassParts) { amountDue += baseMixin.methods.getTotalPriceOfAllLineItemsAndChildParts( lineItemsObject.glassParts, @@ -55,10 +55,11 @@ export function getSubTotal(lineItemsObject) { return getAmountDue(lineItemsObject, false); } -// prettier-ignore export function getSalesTax(lineItemsObject) { // this is amountDue minus subTotal - return (((getAmountDue(lineItemsObject) - getSubTotal(lineItemsObject)) * 100) / 100).toFixed(2); + return (((getAmountDue(lineItemsObject) - getSubTotal(lineItemsObject)) * 100) / 100).toFixed( + 2 + ); } export async function getPriceUpchargeByDayPart(pageNameToLog) {