From ce7f90b374543e465283e3c31d739ae44f162c34 Mon Sep 17 00:00:00 2001 From: Nilesh Pant Date: Mon, 16 Sep 2024 21:58:28 +0530 Subject: [PATCH 1/2] search for only active contacts in xero --- apps/xero/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/xero/models.py b/apps/xero/models.py index 09bae97a..c09393b3 100644 --- a/apps/xero/models.py +++ b/apps/xero/models.py @@ -361,6 +361,7 @@ def create_bank_transaction( value__iexact=merchant, attribute_type="CONTACT", workspace_id=expense_group.workspace_id, + active=True ).first() if not contact_id: From 75f4c60357b5c6914c5b38b83e647011ff2fe225 Mon Sep 17 00:00:00 2001 From: Nilesh Pant Date: Mon, 16 Sep 2024 22:50:47 +0530 Subject: [PATCH 2/2] fyle dashboard api release 5 --- apps/xero/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/xero/models.py b/apps/xero/models.py index c09393b3..6b316c01 100644 --- a/apps/xero/models.py +++ b/apps/xero/models.py @@ -362,7 +362,7 @@ def create_bank_transaction( attribute_type="CONTACT", workspace_id=expense_group.workspace_id, active=True - ).first() + ).order_by("-updated_at").first() if not contact_id: contact_id = (