From 57d92caf08fb2edb624e57f2b959ecfc3b00ca53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucien=20Akchot=C3=A9?= Date: Tue, 2 Jul 2024 16:40:38 +0200 Subject: [PATCH 1/2] disable taxes if we need to disconnect a previous integration first --- src/components/ConnectToQuickbooksOnlineButton/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/ConnectToQuickbooksOnlineButton/index.tsx b/src/components/ConnectToQuickbooksOnlineButton/index.tsx index 71f1fba91187..f7ce31554d3e 100644 --- a/src/components/ConnectToQuickbooksOnlineButton/index.tsx +++ b/src/components/ConnectToQuickbooksOnlineButton/index.tsx @@ -40,6 +40,8 @@ function ConnectToQuickbooksOnlineButton({policyID, shouldDisconnectIntegrationB {shouldDisconnectIntegrationBeforeConnecting && integrationToDisconnect && isDisconnectModalOpen && ( { + // Since QBO doesn't support Taxes, we should disable them from the LHN when connecting to QBO + PolicyAction.enablePolicyTaxes(policyID, false); removePolicyConnection(policyID, integrationToDisconnect); Link.openLink(getQuickBooksOnlineSetupLink(policyID), environmentURL); setIsDisconnectModalOpen(false); From 3ef67024f7695d045a14ee72e1f1dcbe67f87e95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucien=20Akchot=C3=A9?= Date: Wed, 3 Jul 2024 08:52:23 +0200 Subject: [PATCH 2/2] fix prettier --- src/components/ConnectToQuickbooksOnlineButton/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ConnectToQuickbooksOnlineButton/index.tsx b/src/components/ConnectToQuickbooksOnlineButton/index.tsx index f7ce31554d3e..50ee9165b8a3 100644 --- a/src/components/ConnectToQuickbooksOnlineButton/index.tsx +++ b/src/components/ConnectToQuickbooksOnlineButton/index.tsx @@ -41,7 +41,7 @@ function ConnectToQuickbooksOnlineButton({policyID, shouldDisconnectIntegrationB { // Since QBO doesn't support Taxes, we should disable them from the LHN when connecting to QBO - PolicyAction.enablePolicyTaxes(policyID, false); + PolicyAction.enablePolicyTaxes(policyID, false); removePolicyConnection(policyID, integrationToDisconnect); Link.openLink(getQuickBooksOnlineSetupLink(policyID), environmentURL); setIsDisconnectModalOpen(false);