Prettified
This commit is contained in:
parent
df554cfae5
commit
4414d39c50
3 changed files with 11 additions and 8 deletions
|
|
@ -91,7 +91,7 @@ export default {
|
|||
answer.SubText = "+$" + this.wipersPrice;
|
||||
answers.push(answer);
|
||||
}
|
||||
|
||||
|
||||
if (this.showAddRainDefense) {
|
||||
const answer = getAnswer("RainDefenseModal", this.answersCmsData);
|
||||
answer.SubText = "+$" + this.rainDefensePrice;
|
||||
|
|
|
|||
|
|
@ -12,7 +12,9 @@
|
|||
</div>
|
||||
<div class="price-table">
|
||||
<div class="service-type" :class="{ packageWithVAPS: packageWithVAPS }">
|
||||
<textBlock :cmsWidgetName="packageNameWidget" /><span>{{ currencyFormatter.format(packagePrice) }}</span>
|
||||
<textBlock :cmsWidgetName="packageNameWidget" /><span>{{
|
||||
currencyFormatter.format(packagePrice)
|
||||
}}</span>
|
||||
</div>
|
||||
<div
|
||||
v-for="(lineItem, i) in displayedPackageLineItems"
|
||||
|
|
@ -160,7 +162,7 @@ export default {
|
|||
: baseMixin.methods.getTierOnePackagePrice(
|
||||
baseMixin.methods.filterOutFees(this.availableLineItems)
|
||||
);
|
||||
|
||||
|
||||
packagePrice += this.getVapsPrice(this.packageLevel);
|
||||
|
||||
return packagePrice;
|
||||
|
|
@ -249,11 +251,12 @@ export default {
|
|||
},
|
||||
subTotal() {
|
||||
let subTotal = 0;
|
||||
|
||||
|
||||
this.lineItems.forEach((lineItem) => {
|
||||
subTotal += (lineItem.kitPrice ?? 0) +
|
||||
(lineItem.laborAmount ?? 0) +
|
||||
(lineItem.sellingPrice ?? 0);
|
||||
subTotal +=
|
||||
(lineItem.kitPrice ?? 0) +
|
||||
(lineItem.laborAmount ?? 0) +
|
||||
(lineItem.sellingPrice ?? 0);
|
||||
});
|
||||
|
||||
return subTotal;
|
||||
|
|
|
|||
|
|
@ -160,7 +160,7 @@ export default {
|
|||
const lineItems = store.getters.order.lineItems;
|
||||
|
||||
const combinedLineItems = [...glassParts, ...lineItems.supportingItems, ...lineItems.vaps];
|
||||
|
||||
|
||||
const taxedLineItems = await baseMixin.methods.dispatchStoreActionWithLogging(
|
||||
storeActions.TAX_ORDER_ITEMS_AND_SAVE_SERVER_DATA,
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue