Skip to content

Commit

Permalink
Sync posting accounts (#85)
Browse files Browse the repository at this point in the history
* Only sync posting accounts

* Only sync posting accounts
  • Loading branch information
ruuushhh authored Jan 25, 2024
1 parent b61b8d3 commit 14075dc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/business_central/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 14075dc

Please sign in to comment.