From c7dbfa74231b9e0acf195772816acb3e3fcb7015 Mon Sep 17 00:00:00 2001 From: CarlNation Date: Tue, 29 Oct 2024 10:18:50 -0400 Subject: [PATCH] CSR-2288 set bill-to on insurance company page CSR-2288 set bill-to on insurance company page once the user -has selected the company --- .../insurance-company/insurance-company.vue | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/layouts/insurance-company/insurance-company.vue b/src/layouts/insurance-company/insurance-company.vue index bc5034c67..256e09f5c 100644 --- a/src/layouts/insurance-company/insurance-company.vue +++ b/src/layouts/insurance-company/insurance-company.vue @@ -130,6 +130,20 @@ export default { this.parentAccountNumber.toString(), false ); + + const billToAccountNumber = await baseMixin.methods.dispatchStoreActionWithLogging( + storeActions.GET_BILL_TO_ACCOUNT_NUMBER, + {}, + "insurance-company", + false + ); + + baseMixin.methods.dispatchStoreAction( + storeActions.SAVE_BILL_TO_ACCOUNT_NUMBER, + billToAccountNumber, + false + ); + navigateToHeritageFunnel({ shouldSaveSession: true, pageNameToLog: "insurance-company",