diff --git a/accounting/templates/accounting/search.html b/accounting/templates/accounting/search.html index 35064a5..de9d459 100644 --- a/accounting/templates/accounting/search.html +++ b/accounting/templates/accounting/search.html @@ -99,7 +99,7 @@ First written: 2020/7/21 {% endif %} {{ item.debit_amount|accounting_amount }} {{ item.credit_amount|accounting_amount }} - {{ item.transaction.note|default:"" }} + {{ item.transaction.notes|default:"" }} diff --git a/accounting/views.py b/accounting/views.py index ad1be48..4fd7e77 100644 --- a/accounting/views.py +++ b/accounting/views.py @@ -798,7 +798,7 @@ def search(request): get_multi_lingual_search("account__title", query) | Q(account__code__icontains=query) | Q(summary__icontains=query) - | Q(transaction__note__icontains=query)) + | Q(transaction__notes__icontains=query)) try: pagination = Pagination(request, records, True) except PaginationException as e: