Skip to content

Commit 38aaa8f

Browse files
committed
fix: bank filter for transactions
1 parent 9cab48f commit 38aaa8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/modules/finance/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,9 @@ def get(self, request, transaction_id=None):
307307
error_response = error.builder(400, 'Enter at least 3 characters.')
308308
return Response(error_response, status.HTTP_400_BAD_REQUEST)
309309

310-
transaction = transaction.filter(
310+
transactions = transactions.filter(
311311
Q(account__id__exact=bank) |
312-
Q(account__iexact=bank)
312+
Q(account__name__iexact=bank)
313313
)
314314

315315
if date:

0 commit comments

Comments
 (0)