Small tweaks to new customer fields

This commit is contained in:
Raphael Michel
2022-04-29 14:45:12 +02:00
parent 2a8faf1d12
commit a2413db65d
3 changed files with 4 additions and 2 deletions

View File

@@ -1310,6 +1310,8 @@ class CustomerFilterForm(FilterForm):
Q(email__icontains=query)
| Q(name_cached__icontains=query)
| Q(identifier__istartswith=query)
| Q(external_identifier__icontains=query)
| Q(notes__icontains=query)
)
if fdata.get('status') == 'active':

View File

@@ -65,7 +65,7 @@
{% endif %}</dd>
{% if customer.notes %}
<dt>{% trans "Notes" %}</dt>
<dd>{{ customer.notes }}</dd>
<dd>{{ customer.notes|linebreaks }}</dd>
{% endif %}
</dl>
</form>

View File

@@ -62,7 +62,7 @@
<th>{% trans "Name" %}
<a href="?{% url_replace request 'ordering' '-name' %}"><i class="fa fa-caret-down"></i></a>
<a href="?{% url_replace request 'ordering' 'name' %}"><i class="fa fa-caret-up"></i></a></th>
<th>{% trans "External ID" %}
<th>{% trans "External identifier" %}
<a href="?{% url_replace request 'ordering' '-external_identifier' %}"><i class="fa fa-caret-down"></i></a>
<a href="?{% url_replace request 'ordering' 'external_identifier' %}"><i class="fa fa-caret-up"></i></a></th>
<th></th>