{% extends "base.html.twig" %} {% block BeforeAnyCSSFile %} {% for file in encore_entry_css_files('select2__init') %} {% endfor %} {% for file in encore_entry_css_files('dateRangepicker__init') %} {% endfor %} {% endblock %} {% block ExtraCSSFiles %} {% endblock %} {% set pagename = 'Incomes' | trans %} {% set addBtnTitle = 'Add Instant Income?' | trans %} {% set addBtnLink = path('account_payment') %} {% block MainContent %} {% set date = app.request.query.get('date') is empty ? '' : app.request.query.get('date') %}
{# search invoice block#}
{# Search filter head #}

{{ 'Filter Income'|trans }} {# dropdown #}

{# filters #}
{# search attendance marking date duration #}
{# Income head #}
{# Payment method #}
{% set printFilePath = {'date': date, 'incomeHead': app.request.query.get('incomeHead'), 'paymentMethod':app.request.query.get('paymentMethod'), 'printResult': 1} %}   {{ 'Print' | trans }}   {{ 'Clear' | trans }}   {{ 'Schedule Message' }}
{# invoice list #}
{% for key,income in transactionsAsIncome %} {% endfor %}
{{ 'Invoice#'|trans }} {{ 'Student Name'|trans }} {{ 'Class'|trans }} {{ 'Payment Method'|trans }} {{ 'Income Head'|trans }} {{ 'Account'|trans }} {{ 'Date'|trans }} {{ 'Amount'|trans }}
{{ income.invoicereference is not empty ? income.invoicereference.invreference }} {% 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.paymentmethodreference.pmtype }} {{ income.incomehead.ahname }} {{ income.accountsreference.accname }} {{ date_format(income.transdatetime) }} {{ getAppSetting('currencyPreFix') ~' '~ income.amount ~ ' ' ~ getAppSetting('currencySuffex') }}
{% endblock %} {% block ExtraJsFIles %} {% for file in encore_entry_js_files('accounts') %} {% endfor %} {% for file in encore_entry_js_files('dateRangepicker__init') %} {% endfor %} {% endblock %}