CASH-152: fix merge-munged
This commit is contained in:
parent
edc9abe000
commit
78b43fee69
1 changed files with 0 additions and 28 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue