CASH-152: making code HARDER to read with prettier forced formatting
This commit is contained in:
parent
46bbd26944
commit
36da3b78be
1 changed files with 4 additions and 3 deletions
|
|
@ -14,7 +14,7 @@ export function getAmountDue(lineItemsObject, includeTax = true) {
|
||||||
const order = baseMixin?.methods?.hasSubmittedOrder()
|
const order = baseMixin?.methods?.hasSubmittedOrder()
|
||||||
? baseMixin?.methods?.getSubmittedOrder()
|
? baseMixin?.methods?.getSubmittedOrder()
|
||||||
: store.getters.order;
|
: store.getters.order;
|
||||||
|
|
||||||
if (lineItemsObject?.glassParts) {
|
if (lineItemsObject?.glassParts) {
|
||||||
amountDue += baseMixin.methods.getTotalPriceOfAllLineItemsAndChildParts(
|
amountDue += baseMixin.methods.getTotalPriceOfAllLineItemsAndChildParts(
|
||||||
lineItemsObject.glassParts,
|
lineItemsObject.glassParts,
|
||||||
|
|
@ -55,10 +55,11 @@ export function getSubTotal(lineItemsObject) {
|
||||||
return getAmountDue(lineItemsObject, false);
|
return getAmountDue(lineItemsObject, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// prettier-ignore
|
|
||||||
export function getSalesTax(lineItemsObject) {
|
export function getSalesTax(lineItemsObject) {
|
||||||
// this is amountDue minus subTotal
|
// 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) {
|
export async function getPriceUpchargeByDayPart(pageNameToLog) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue