SSR-1205 Rename cart-dropdown order-> cartOrder
This commit is contained in:
parent
0b3511b3aa
commit
ed8a60dfd3
1 changed files with 12 additions and 12 deletions
|
|
@ -213,42 +213,42 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
order() {
|
cartOrder() {
|
||||||
return this.submittedOrder ?? useMainStore().order;
|
return this.submittedOrder ?? useMainStore().order;
|
||||||
},
|
},
|
||||||
deductible() {
|
deductible() {
|
||||||
return getDeductible(this.order);
|
return getDeductible(this.cartOrder);
|
||||||
},
|
},
|
||||||
showDeductibleCartItem() {
|
showDeductibleCartItem() {
|
||||||
return this.isUnverified || (!this.isNoComp && !this.isITAC);
|
return this.isUnverified || (!this.isNoComp && !this.isITAC);
|
||||||
},
|
},
|
||||||
lineItems() {
|
lineItems() {
|
||||||
return getLineItems(this.order);
|
return getLineItems(this.cartOrder);
|
||||||
},
|
},
|
||||||
recycleFeeLineItem() {
|
recycleFeeLineItem() {
|
||||||
return getRecycleFee(this.order);
|
return getRecycleFee(this.cartOrder);
|
||||||
},
|
},
|
||||||
servicePrice() {
|
servicePrice() {
|
||||||
return getPriceOfLineItems(getServiceLineItems(this.order), false) ?? 0;
|
return getPriceOfLineItems(getServiceLineItems(this.cartOrder), false) ?? 0;
|
||||||
},
|
},
|
||||||
isUnverified() {
|
isUnverified() {
|
||||||
return isOrderUnverified(this.order);
|
return isOrderUnverified(this.cartOrder);
|
||||||
},
|
},
|
||||||
isITAC() {
|
isITAC() {
|
||||||
return isOrderITAC(this.order);
|
return isOrderITAC(this.cartOrder);
|
||||||
},
|
},
|
||||||
isNoComp() {
|
isNoComp() {
|
||||||
return isOrderNoComp(this.order);
|
return isOrderNoComp(this.cartOrder);
|
||||||
},
|
},
|
||||||
// TODO fix rounding
|
// TODO fix rounding
|
||||||
subTotal() {
|
subTotal() {
|
||||||
return getSubtotal(this.order);
|
return getSubtotal(this.cartOrder);
|
||||||
},
|
},
|
||||||
salesTax() {
|
salesTax() {
|
||||||
return getSalesTax(this.order);
|
return getSalesTax(this.cartOrder);
|
||||||
},
|
},
|
||||||
total() {
|
total() {
|
||||||
return getCartTotal(this.order);
|
return getCartTotal(this.cartOrder);
|
||||||
},
|
},
|
||||||
amountDue() {
|
amountDue() {
|
||||||
return this.showAsPaid ? 0 : this.total;
|
return this.showAsPaid ? 0 : this.total;
|
||||||
|
|
@ -393,7 +393,7 @@ export default {
|
||||||
: null;
|
: null;
|
||||||
},
|
},
|
||||||
mobileFeeCartItem() {
|
mobileFeeCartItem() {
|
||||||
const mobileFeeLineItem = getMobileFee(this.order);
|
const mobileFeeLineItem = getMobileFee(this.cartOrder);
|
||||||
return mobileFeeLineItem
|
return mobileFeeLineItem
|
||||||
? this.getCartItem(
|
? this.getCartItem(
|
||||||
this.getCmsContent(this.widget.mobileFee, widgetFields.TEXT_BLOCK_WIDGET.TEXT),
|
this.getCmsContent(this.widget.mobileFee, widgetFields.TEXT_BLOCK_WIDGET.TEXT),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue