{% extends "base.html.twig" %} {% block BeforeAnyCSSFile %} {% for file in encore_entry_css_files('select2__init') %} {% endfor %} {% endblock %} {% block ExtraCSSFiles %} {% endblock %} {% set pagename = 'Invoice List' | trans %} {% block MainContent %}
{{ 'Ref#'|trans }} | {{ 'Invoice to'|trans }} | {{ 'Invoice date'|trans }} | {{ 'Due date'|trans }} | {{ 'Amount'|trans }} | {{ 'Status'|trans }} |
---|---|---|---|---|---|
{% if is_granted("ROLE_ADMIN") %} {{ inv.getInvReference }} {% else %} {{ inv.getInvReference }} {% endif %} | {# invoice register to, #}{{ inv.getInvoiceGeneratedForUnregisterUsername is empty ? inv.getInvGeneratedFor.getFName : inv.getInvoiceGeneratedForUnregisterUsername ~ ' (Un-register user)' }} | {# invoice to date#}{{ date_format( inv.getInvGeneratedDatetime) }} | {# invoice due date #}{{ date_format( inv.getInvDueDate) }} | {# invoice amount #}{{ getAppSetting('currencyPreFix') }} {{ inv.getTotalAmountOfInvoice }} {{ getAppSetting('currencySuffex') }} | {# invoice status #}
{% if inv.getTheInvoiceStatus == 'Paid' %}
{{ 'Paid' | trans }}
{% elseif inv.getTheInvoiceStatus == 'Partial Paid' %}
{{ 'Partial Paid' | trans }}
{{ inv.getTheInvoiceAmountWhichIsNotPaid }} {{ 'remainig ' }} {% elseif inv.getTheInvoiceStatus == 'Over Paid' %} {{ 'Over Paid' | trans }} {% elseif inv.getTheInvoiceStatus == 'Un Paid' %} {{ 'Un Paid' | trans }} {% else %} {{ inv.getTheInvoiceStatus }} {% endif %} |