From 78b43fee69e321542637b75f9fe91a0e90d32e40 Mon Sep 17 00:00:00 2001 From: Adam Caouette Date: Mon, 17 Mar 2025 10:34:52 -0400 Subject: [PATCH] CASH-152: fix merge-munged --- src/helpers/pricing-helper.js | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/src/helpers/pricing-helper.js b/src/helpers/pricing-helper.js index 4a215eaa0..b9262f95d 100644 --- a/src/helpers/pricing-helper.js +++ b/src/helpers/pricing-helper.js @@ -58,34 +58,6 @@ export function getSubTotal(lineItemsObject) { export function getSalesTax(lineItemsObject) { // this is amountDue minus subTotal return (((getAmountDue(lineItemsObject) - getSubTotal(lineItemsObject)) * 100) / 100).toFixed(2); -export async function getPriceUpchargeByDayPart(pageNameToLog) { - // Get the Pricing By Day Part - const basePriceByDayPart = await baseMixin.methods.dispatchStoreActionWithLogging( - storeActions.GET_PRICING_BY_DAY_UPCHARGE_PART, - null, - pageNameToLog, - false - ); - - if ( - basePriceByDayPart?.data === null || - basePriceByDayPart?.data === undefined || - basePriceByDayPart?.data === "" - ) { - return null; - } - - // Get the Pricing By Day Base Part price - const pricingResults = await baseMixin.methods.dispatchStoreActionWithLogging( - storeActions.PRICE_ORDER_ITEMS_AND_SAVE_SERVER_DATA, - { - availableLineItems: [basePriceByDayPart?.data], - }, - pageNameToLog, - false - ); - - return pricingResults[0]; } export async function getPriceUpchargeByDayPart(pageNameToLog) {