Tax on item removed from cart
This commit is contained in:
parent
1d7a2b6181
commit
4f69380428
2 changed files with 19 additions and 1 deletions
|
|
@ -322,6 +322,7 @@ export default {
|
|||
false
|
||||
);
|
||||
}
|
||||
this.$emit("itemRemoved");
|
||||
},
|
||||
|
||||
async saveVaps(lineItems) {
|
||||
|
|
|
|||
|
|
@ -34,7 +34,8 @@
|
|||
:isItac="isItac"
|
||||
:isNoComp="isNoComp"
|
||||
:isExpandedOnLoad="false"
|
||||
:isMSRFeeApplicable="isMSRFeeApplicable" />
|
||||
:isMSRFeeApplicable="isMSRFeeApplicable"
|
||||
@itemRemoved="reTaxItemsOnOrder" />
|
||||
|
||||
<afterpayBreakout
|
||||
v-if="isAfterpayBreakoutDisplay"
|
||||
|
|
@ -597,6 +598,22 @@ export default {
|
|||
this.pageName
|
||||
);
|
||||
},
|
||||
async reTaxItemsOnOrder() {
|
||||
this.lineItems = await baseMixin.methods.dispatchStoreActionWithLogging(
|
||||
storeActions.TAX_ORDER_ITEMS_AND_SAVE_SERVER_DATA,
|
||||
{
|
||||
billToAccountNumber: store.getters.payment.billToAccountNumber,
|
||||
providerNumber: store.getters.order.serviceLocation.provider.providerNumber,
|
||||
appointmentType: store.getters.order.serviceLocation.appointmentType,
|
||||
serviceLocationCity: store.getters.order.serviceLocation.city,
|
||||
serviceLocationState: store.getters.order.serviceLocation.state,
|
||||
serviceLocationZipCode: store.getters.order.serviceLocation.zipCode,
|
||||
pricedLineItems: this.lineItems,
|
||||
},
|
||||
"payment-method",
|
||||
false
|
||||
);
|
||||
},
|
||||
hasSubmittedOrder() {
|
||||
return baseMixin.methods.hasSubmittedOrder();
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue