CASH-484: prettier changes
This commit is contained in:
parent
9083ffbaed
commit
f71de530af
1 changed files with 4 additions and 3 deletions
|
|
@ -277,7 +277,7 @@ export default {
|
|||
if (supportingItemsFromStore) {
|
||||
const pricingByDayUpchargeFeeIndex = supportingItemsFromStore?.findIndex(
|
||||
(item) => item.partType == PRICING_BY_DAY_PART_TYPE
|
||||
);
|
||||
);
|
||||
if (pricingByDayUpchargeFeeIndex > -1 && !isInsurance) {
|
||||
includePricingByDayUpcharge = true;
|
||||
}
|
||||
|
|
@ -636,7 +636,7 @@ export default {
|
|||
(item) => item.partType == PRICING_BY_DAY_PART_TYPE
|
||||
);
|
||||
|
||||
if (this.includePricingByDayUpcharge && this.showPricingByDay) {
|
||||
if (this.includePricingByDayUpcharge && this.showPricingByDay) {
|
||||
if (pricingByDayUpchargeFeeIndex && pricingByDayUpchargeFeeIndex > -1) {
|
||||
supportingItems[pricingByDayUpchargeFeeIndex].laborAmount =
|
||||
this.pricingByDayUpchargeLineItem.laborAmount;
|
||||
|
|
@ -648,7 +648,8 @@ export default {
|
|||
supportingItems.push(this.pricingByDayUpchargeLineItem);
|
||||
}
|
||||
} else {
|
||||
if (pricingByDayUpchargeFeeIndex >= 0) { // remove pricing by day upcharge if it already was in store
|
||||
if (pricingByDayUpchargeFeeIndex >= 0) {
|
||||
// remove pricing by day upcharge if it already was in store
|
||||
supportingItems.splice(pricingByDayUpchargeFeeIndex, 1);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue