Merge branch 'release/2026.01.22' into nation/CASH-2149
This commit is contained in:
commit
3d931b82bf
1 changed files with 13 additions and 0 deletions
|
|
@ -164,6 +164,8 @@ export default {
|
||||||
// await any pending save-sessions. if you don't, we will save the new parent account into vuex and then a pending async save-session response overwrites it
|
// await any pending save-sessions. if you don't, we will save the new parent account into vuex and then a pending async save-session response overwrites it
|
||||||
await flushSaveSessionQueue();
|
await flushSaveSessionQueue();
|
||||||
|
|
||||||
|
await this.removeQPDLineItemIfExists();
|
||||||
|
|
||||||
await this.dispatchStoreAction(
|
await this.dispatchStoreAction(
|
||||||
this.storeActions.SAVE_PARENT_ACCOUNT_NUMBER,
|
this.storeActions.SAVE_PARENT_ACCOUNT_NUMBER,
|
||||||
this.parentAccountNumber.toString(),
|
this.parentAccountNumber.toString(),
|
||||||
|
|
@ -193,6 +195,17 @@ export default {
|
||||||
handlePageShow() {
|
handlePageShow() {
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
},
|
},
|
||||||
|
async removeQPDLineItemIfExists() {
|
||||||
|
const lineItems = deepClone(store.getters.order.lineItems);
|
||||||
|
lineItems.supportingItems = baseMixin.methods.filterOutQuotePageDiscountPart(
|
||||||
|
lineItems.supportingItems
|
||||||
|
);
|
||||||
|
await baseMixin.methods.dispatchStoreAction(
|
||||||
|
storeActions.SAVE_SUPPORTING_ITEMS_SUPPRESSING_STATE_RESETTING,
|
||||||
|
lineItems.supportingItems,
|
||||||
|
false
|
||||||
|
);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
unmounted() {
|
unmounted() {
|
||||||
window.removeEventListener("pageshow", this.handlePageShow);
|
window.removeEventListener("pageshow", this.handlePageShow);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue