From 00b1fa463ebc252b3ed403345b7115a70aba8299 Mon Sep 17 00:00:00 2001 From: CarlNation Date: Thu, 27 Jun 2024 21:48:38 -0400 Subject: [PATCH] CSR-2118 always use cash account calling pricing from quote CSR-2118 always use cash account calling pricing from quote --- src/layouts/quote/quote.vue | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/layouts/quote/quote.vue b/src/layouts/quote/quote.vue index 4477d4d0f..bad345022 100644 --- a/src/layouts/quote/quote.vue +++ b/src/layouts/quote/quote.vue @@ -192,6 +192,18 @@ export default { ...servicePackageDiscountPart, ]; + // When calling pricing from the quote page, always use the cash parent account + baseMixin.methods.dispatchStoreAction( + storeActions.SAVE_PARENT_ACCOUNT_NUMBER, + applicationConfig.CASH_PARENT_ACCOUNT_NUMBER, + false + ); + baseMixin.methods.dispatchStoreAction( + storeActions.SAVE_BILL_TO_ACCOUNT_NUMBER, + applicationConfig.CASH_DEFAULT_BILL_TO_ACCOUNT_NUMBER, + false + ); + const pricingResults = await baseMixin.methods.dispatchStoreActionWithLogging( storeActions.PRICE_ORDER_ITEMS_AND_SAVE_SERVER_DATA, {