add amount paid to cart for PIA
This commit is contained in:
parent
7f53105827
commit
e4cdc59bc9
1 changed files with 16 additions and 0 deletions
|
|
@ -123,6 +123,13 @@
|
||||||
<span id="sales-tax-label">{{ salesTaxLabel }}</span>
|
<span id="sales-tax-label">{{ salesTaxLabel }}</span>
|
||||||
<span id="sales-tax-value">{{ formatAmountInDollars(salesTax) }}</span>
|
<span id="sales-tax-value">{{ formatAmountInDollars(salesTax) }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
<div
|
||||||
|
v-if="showAsPaid"
|
||||||
|
id="amount-paid"
|
||||||
|
class="pt-1 col d-flex justify-content-between">
|
||||||
|
<span id="amount-paid-label">{{ amountPaidLabel }}</span>
|
||||||
|
<span if="amount-paid-value">{{ getDisplayed(amountPaid) }}</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
id="bottom-amount-due"
|
id="bottom-amount-due"
|
||||||
|
|
@ -177,6 +184,7 @@ export default {
|
||||||
isExpanded: false,
|
isExpanded: false,
|
||||||
widget: {
|
widget: {
|
||||||
amountDue: 'AmountDueTextWidget',
|
amountDue: 'AmountDueTextWidget',
|
||||||
|
amountPaid: 'AmountPaidTextWidget',
|
||||||
deductible: 'DeductibleWidget',
|
deductible: 'DeductibleWidget',
|
||||||
basePrice: 'BasePriceWidget',
|
basePrice: 'BasePriceWidget',
|
||||||
subtotal: 'SubtotalWidget',
|
subtotal: 'SubtotalWidget',
|
||||||
|
|
@ -278,6 +286,11 @@ export default {
|
||||||
? 0
|
? 0
|
||||||
: this.subTotal + this.salesTax;
|
: this.subTotal + this.salesTax;
|
||||||
},
|
},
|
||||||
|
amountPaid() {
|
||||||
|
return !this.showAsPaid
|
||||||
|
? 0
|
||||||
|
: this.subTotal + this.salesTax;
|
||||||
|
},
|
||||||
availableLineItems() {
|
availableLineItems() {
|
||||||
const { supportingItems, glassParts, otherParts, mobileFee } = this.lineItems;
|
const { supportingItems, glassParts, otherParts, mobileFee } = this.lineItems;
|
||||||
const result = [
|
const result = [
|
||||||
|
|
@ -370,6 +383,9 @@ export default {
|
||||||
amountDueLabel() {
|
amountDueLabel() {
|
||||||
return this.getCmsContent(this.widget.amountDue, widgetFields.TEXT_BLOCK_WIDGET.TEXT);
|
return this.getCmsContent(this.widget.amountDue, widgetFields.TEXT_BLOCK_WIDGET.TEXT);
|
||||||
},
|
},
|
||||||
|
amountPaidLabel() {
|
||||||
|
return this.getCmsContent(this.widget.amountPaid, widgetFields.TEXT_BLOCK_WIDGET.TEXT);
|
||||||
|
},
|
||||||
deductibleLabel() {
|
deductibleLabel() {
|
||||||
return this.getCmsContent(this.widget.deductible, widgetFields.TEXT_BLOCK_WIDGET.TEXT);
|
return this.getCmsContent(this.widget.deductible, widgetFields.TEXT_BLOCK_WIDGET.TEXT);
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue