From 14075dca0ff2a99bf85ce3e48a6e83b0ff631032 Mon Sep 17 00:00:00 2001 From: ruuushhh <66899387+ruuushhh@users.noreply.github.com> Date: Thu, 25 Jan 2024 19:02:38 +0530 Subject: [PATCH] Sync posting accounts (#85) * Only sync posting accounts * Only sync posting accounts --- apps/business_central/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/business_central/utils.py b/apps/business_central/utils.py index 4b9a312..170e213 100644 --- a/apps/business_central/utils.py +++ b/apps/business_central/utils.py @@ -75,6 +75,9 @@ def _sync_data(self, data, attribute_type, display_name, workspace_id, field_nam active = True else: active = False + if attribute_type == 'ACCOUNT': + if item.get('accountType') != 'Posting': + continue destination_attributes.append(self._create_destination_attribute( attribute_type, display_name,