Replaced the incorrect column name note with notes in the search page in the accounting application.
This commit is contained in:
parent
f04b61a0b2
commit
a1d359570f
@ -99,7 +99,7 @@ First written: 2020/7/21
|
||||
{% endif %}</div></td>
|
||||
<td class="amount">{{ item.debit_amount|accounting_amount }}</td>
|
||||
<td class="amount">{{ item.credit_amount|accounting_amount }}</td>
|
||||
<td>{{ item.transaction.note|default:"" }}</td>
|
||||
<td>{{ item.transaction.notes|default:"" }}</td>
|
||||
<td class="actions">
|
||||
<a href="{% url_with_return "accounting:transactions.show" item.transaction.type item.transaction %}" class="btn btn-info" role="button">
|
||||
<i class="fas fa-eye"></i>
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user