Replaced the incorrect column name note with notes in the search page in the accounting application.

This commit is contained in:
依瑪貓 2020-08-08 13:27:17 +08:00
parent f04b61a0b2
commit a1d359570f
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ First written: 2020/7/21
{% endif %}</div></td> {% endif %}</div></td>
<td class="amount">{{ item.debit_amount|accounting_amount }}</td> <td class="amount">{{ item.debit_amount|accounting_amount }}</td>
<td class="amount">{{ item.credit_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"> <td class="actions">
<a href="{% url_with_return "accounting:transactions.show" item.transaction.type item.transaction %}" class="btn btn-info" role="button"> <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> <i class="fas fa-eye"></i>

View File

@ -798,7 +798,7 @@ def search(request):
get_multi_lingual_search("account__title", query) get_multi_lingual_search("account__title", query)
| Q(account__code__icontains=query) | Q(account__code__icontains=query)
| Q(summary__icontains=query) | Q(summary__icontains=query)
| Q(transaction__note__icontains=query)) | Q(transaction__notes__icontains=query))
try: try:
pagination = Pagination(request, records, True) pagination = Pagination(request, records, True)
except PaginationException as e: except PaginationException as e: