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

{{ "Expense Report" | trans }}

{% if (app.request.query)|length > 0 %}
{% if paymentMethod is not empty %}
{% if paymentMethod is not empty %}
{% if paymentMethod is not empty %} Payment Method: {{ paymentMethod.pmtype }} {% endif %}
{% endif %} {% if expenseHead is not empty %}
{% if expenseHead is not empty %} Expense head: {{ expenseHead.ahname }} {% endif %}
{% endif %}
{% endif %}
{% endif %}
{% for key,income in transactionsAsIncome %} {% endfor %}
{{ 'Ref#'|trans }} {{ 'Payment Method'|trans }} {{ 'Expense Head'|trans }} {{ 'Description'|trans }} {{ 'Date'|trans }} {{ 'Amount'|trans }} {{ 'Paid To'|trans }}
{{ key + 1 }} {{ income.getAccountsReference.getAccName }} {{ income.getAccountsReference.getAccName }} {{ income.getTransDescription }} {{ date_format(income.getTransDatetime) }} {{ getAppSetting('currencyPreFix') ~' '~ income.amount ~ ' ' ~ getAppSetting('currencySuffex') }} {% if income.getTransPaidTo is empty or income.getTransPaidTo.id is empty %} {# invoice has been paid to unregister user #} {{ income.getunregisterpaidtouser }} {% else %} {# invoice has been paid to the register user #} {{ income.getTransPaidTo.getFullName }} {% endif %}
{% include "pdfPrintAssets/footer.html.twig" %}