{% extends "base.html.twig" %} {% block BeforeAnyCSSFile %} {% for file in encore_entry_css_files('select2__init') %} {% endfor %} {% endblock %} {% block ExtraCSSFiles %} {% endblock %} {% block pageLabel %} {% endblock %} {% block recordLength %} {% endblock %} {% block MainContent %} {# Filter to search the data #}
{{ 'Ref#'|trans }} | {{ 'Invoice to'|trans }} | {{ 'Invoice date'|trans }} | {{ 'Due date'|trans }} | {{ 'Amount'|trans }} | {{ 'Status'|trans }} | |
---|---|---|---|---|---|---|
{{ inv.id }} | {{ inv['inv_reference'] }} | {# invoice register to, #}{{ inv['invoice_generated_for_unregister_username'] is empty ? inv['fName'] ~ inv['lname'] : inv['invoice_generated_for_unregister_username'] ~ ' (Un-register user)' }} | {# invoice to date#}{{ ( inv['inv_generated_datetime']) | date(getFreshAppSetting('date_format')) }} | {# invoice due date #}{{ ( inv['inv_due_date'] | date(getFreshAppSetting('date_format')) ) }} | {# invoice amount #}{{ getAppSetting('currencyPreFix') }} {{ inv['InvoiceSum'] }} {{ getAppSetting('currencySuffex') }} | {# invoice status #}
{% if inv['TransactionSum'] is empty or inv['TransactionSum'] is null %}
{{ 'Un Paid' | trans }}
{% elseif inv['InvoiceSum'] > inv['TransactionSum'] %}
{{ 'Partial Paid' | trans }}
{{ inv['InvoiceSum'] - inv['TransactionSum'] }} {{ 'remainig ' }} {% else %} {{ 'Un-Known' | trans }} {% endif %} |