Skip to content

Commit

Permalink
destinationAttribute filter changes for customer (#326)
Browse files Browse the repository at this point in the history
destinationAttribute filter changes for customer
  • Loading branch information
DhaaraniCIT authored Mar 14, 2024
1 parent 09a13be commit 6964fe8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions apps/xero/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ def get_queryset(self):
& ~Q(attribute_type="ACCOUNT")
& ~Q(attribute_type="TENANT")
& ~Q(attribute_type="BANK_ACCOUNT")
& ~Q(attribute_type="TAX_CODE")
& ~Q(attribute_type="CUSTOMER"),
& ~Q(attribute_type="TAX_CODE"),
workspace_id=self.kwargs["workspace_id"],
)
.values("attribute_type", "display_name")
Expand Down
2 changes: 1 addition & 1 deletion tests/test_xero/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def test_get_xero_fields_view(api_client, test_connection):
assert response.status_code == 200

response = json.loads(response.content)
assert len(response) == 2
assert len(response) == 3


def test_post_sync_dimensions(mocker, api_client, test_connection):
Expand Down

0 comments on commit 6964fe8

Please sign in to comment.