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

{{ 'Invoice' | trans }} - {{ invoice.getInvReference() }}

{{ invoice.getInvoiceGeneratedForUnregisterUsername is empty ? invoice.getInvGeneratedFor.getFullName : invoice.getInvoiceGeneratedForUnregisterUsername ~ ' (Un-register user)' }}

{% if invoice.getInvoiceGeneratedForUnregisterUsername is empty %}

{{ 'User Type: ' ~ invoice.getInvGeneratedFor.getUserType }}

{{ 'Email: ' ~ invoice.getInvGeneratedFor.getEmail }}

{% endif %}
{{ getFreshAppSetting('school_logo_path',true) is empty ? 'School Logo' }}

{{ 'Recipient' | trans }}

{{ getFreshAppSetting('school_name',true) is empty ? 'School name is missing' }}

{{ 'Invoice #' | trans }} {{ invoice.getInvReference() }}
{{ 'Generation Date' | trans }} {{ date_format(invoice.getInvGeneratedDatetime) }}
{{ 'Due Date' | trans }} {{ date_format(invoice.getInvDueDate) }}
{{ 'Status' | trans }} {{ invoice.getTheInvoiceStatus }}
{{ 'Amount Due' | trans }} {{ getFreshAppSetting('currencyPreFix') }}{{ invoice.getTheInvoiceAmountWhichIsNotPaid }} {{ getFreshAppSetting('currencySuffex') }}
{% for invItem in invoice.getInvoiceItems.toArray() %} {% endfor %}
{{ "Description" | trans }} {{ "Price" | trans }}
{{ invItem.getInvItemDescription }} {{ getFreshAppSetting('currencyPreFix') }}{{ invItem.getInvItemAmount() }} {{ getFreshAppSetting('currencySuffex') }}
{{ 'Total' | trans }} {{ getFreshAppSetting('currencyPreFix') }}{{ invoice.getTotalAmountOfInvoice }} {{ getFreshAppSetting('currencySuffex') }}
{{ 'Amount Paid' | trans }} {{ getFreshAppSetting('currencyPreFix') }}{{ invoice.getTotalAmountOfInvoice - invoice.getTheInvoiceAmountWhichIsNotPaid }} {{ getFreshAppSetting('currencySuffex') }}
{{ 'Balance Due' | trans }} {{ getFreshAppSetting('currencyPreFix') }}{{ invoice.getTheInvoiceAmountWhichIsNotPaid }} {{ getFreshAppSetting('currencySuffex') }}