{% load perm_tags %} {% load base_filters %} {% load i18n %}
 
{{ invoice.pk}} {% if not invoice.is_tendered %} {% if 'cancel' in invoice.status_detail %} {% trans "CANCELLED" %} {% else %} {% trans "EST" %} {% endif %} {% else %} Tendered {{ invoice.tender_date|date:'N j, Y h:i a'}}  {% endif %} {% if request.user.is_superuser %} View Accounting Entries {% endif %} {# createor username #} {% if invoice.creator.username %} {{ invoice.creator.username }} {% else %}   {% endif %} {# create_dt #} {% if invoice.create_dt %} {{ invoice.create_dt|date:'long'}} {% else %}   {% endif %} {# total #} {% if invoice.is_tendered and invoice.total > 0 %} {{ invoice.total|format_currency }} {% else %} ---- {% endif %}