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

{{ 'Income Report' | trans }}

{% if (app.request.query)|length > 0 %}
{% if paymentMethod is not empty or accountHead is not empty %}
{% if paymentMethod is not empty %}
{% if paymentMethod is not empty %} Payment Method: {{ paymentMethod.pmtype }} {% endif %}
{% endif %} {% if accountHead is not empty %}
{% if accountHead is not empty %} Income head: {{ accountHead.ahname }} {% endif %}
{% endif %}
{% endif %}
{% endif %}
{% for key,income in transactionsAsIncome %} {% endfor %}
{{ 'Ref#'|trans }} {{ 'Paid By'|trans }} {{ 'Class'|trans }} {{ 'Account Head'|trans }} {{ 'Date'|trans }} {{ 'Amount'|trans }}
{{ key + 1 }} {% if income.getTransPaidTo is not empty %} {{ income.getTransPaidTo.getFullName }} {% endif %} {% if income.getInvoiceReference is not empty and income.getInvoiceReference.id is not empty %} {% if income.getInvoiceReference.getClassSessionEnrolment is not empty and income.getInvoiceReference.getClassSessionEnrolment.id != 0 %} {% if income.getInvoiceReference.getClassSessionEnrolment.getClassSession is not empty and income.getInvoiceReference.getClassSessionEnrolment.getClassSession.id != 0 %} {{ income.getInvoiceReference.getClassSessionEnrolment.getClassSession.name }} {% endif %} {% endif %} {% endif %} {{ income.getAccountsReference.getAccName }} {{ date_format(income.getTransDatetime) }} {{ getAppSetting('currencyPreFix') ~' '~ income.amount }} {% if getAppSetting('currencySuffex') is not empty %} {{ getAppSetting('currencySuffex') }} {% endif %}
{% include "pdfPrintAssets/footer.html.twig" %}