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) {