Skip to content

Commit

Permalink
search for only active contacts in xero (#393)
Browse files Browse the repository at this point in the history
  • Loading branch information
NileshPant1999 authored Sep 16, 2024
1 parent 1ef2887 commit c948e73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/xero/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,8 @@ def create_bank_transaction(
value__iexact=merchant,
attribute_type="CONTACT",
workspace_id=expense_group.workspace_id,
).first()
active=True
).order_by("-updated_at").first()

if not contact_id:
contact_id = (
Expand Down

0 comments on commit c948e73

Please sign in to comment.