{% load perm_tags %} {% load base_filters %} {% load invoice_tags %} {% invoices_search_line_header request invoice '#000000' %} {% if obj %} {% if invoice.create_dt %} {{ invoice.create_dt|date:"F j, Y"}} {% else %}   {% endif %} {{ invoice.pk }} {% if invoice.bill_to_first_name and invoice.bill_to_last_name %} {{ invoice.bill_to_first_name }} {{ invoice.bill_to_last_name }} {% elif invoice.bill_to %} {{ invoice.bill_to }} {% endif %} {% if obj.get_absolute_url %} {{ obj }} {% else %} {{ obj }} {% endif %} {% if invoice.is_tendered and invoice.total > 0 %} {{ invoice.total|format_currency }} {% else %} {% endif %} {% if invoice.balance == 0 %} {% if invoice.is_void %} {% comment %}Translators: Void adjective {% endcomment %} {% trans 'Void' %} {% else %} {% trans 'Paid' %} {% endif %} {% else %} Balance: {{ invoice.balance|format_currency }} {% endif %} {% if request.user.is_superuser %} {% if invoice.balance == 0 or invoice.is_void %} View Invoice {% else %} {% trans "Mark as Paid" %}     {% endif %} {% else %} View Invoice {% endif %} {% has_perm request.user invoices.change_invoice as can_edit_invoice %}     {% endif %}