{% include "pdfPrintAssets/header.html.twig" %}

{{ 'Defaulter Report' | trans }}

{#{% if (app.request.query)|length > 0 %}#} {#
#} {#{% if paymentMethod is not empty or accountHead is not empty %}#} {#
#} {#
#} {#{% if defaulterReport is not empty %}#} {#
#} {#{% if defaulterReport is not empty %}#} {#Over due: {{ defaulterReport.pmtype }}#} {#{% endif %}#} {#
#} {#{% endif %}#} {#
#} {#
#} {#{% endif %}#} {#
#} {#{% endif %}#}
{% for inv in defaulterReport %} {# invoice #} {# invoice register to, #} {# invoice to date#} {# invoice due date #} {# invoice amount #} {# invoice status #} {% endfor %}
{{ 'Ref#'|trans }} {{ 'Invoice to'|trans }} {{ 'Invoice date'|trans }} {{ 'Due date'|trans }} {{ 'Amount'|trans }} {{ 'Status'|trans }}
{{ inv['inv_reference'] }} {{ inv['invoice_generated_for_unregister_username'] is empty ? inv['fName'] ~ inv['lname'] : inv['invoice_generated_for_unregister_username'] ~ ' (Un-register user)' }} {{ inv['inv_generated_datetime'] | date(getAppSetting('date_format')) }} {{ inv['inv_due_date'] | date(getAppSetting('date_format')) }} {{ getAppSetting('currencyPreFix') }} {{ inv['InvoiceSum'] }} {{ getAppSetting('currencySuffex') }} {% 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 %}
{% include "pdfPrintAssets/footer.html.twig" %}