{% extends "base.html.twig" %} {% block BeforeAnyCSSFile %} {% for file in encore_entry_css_files('select2__init') %} {% endfor %} {% endblock %} {% block ExtraCSSFiles %} {% endblock %} {% block pageLabel %} {{ 'Pay Invoice'|trans }} {% endblock %} {% block recordLength %} {% endblock %} {% block MainContent %} {# Total amount #} {% set invoiceTotalAmount = invoice.getTotalAmountOfInvoice %}
{# invoice action buttons #}
{#invoice action buttons#} {% if is_granted("ROLE_ADMIN") %} {{ 'Edit'|trans }} {% endif %}    {# print invoice #} {{ 'Print Invoice'|trans }}    {# print challan #} {{ 'Print Challan'|trans }}
{# invoice paid to #} {# invoice refernce #} {# Generation date, invoice#} {# Invoice due date #}
{{ 'User name' | trans }} {{ invoice.getInvoiceGeneratedForUnregisterUsername is empty ? invoice.getInvGeneratedFor.getFName : invoice.getInvoiceGeneratedForUnregisterUsername ~ ' (Un-register user)' }}
{{ 'Ref#' | trans }} {{ invoice.getInvReference }}
{{ 'Invoice date' | trans }} {{ date_format( invoice.getInvGeneratedDatetime) }}
{{ 'Due date' | trans }} {{ date_format( invoice.getInvDueDate) }}
{# Inovoice status & Amount #}

{{ invoice.getTheInvoiceStatus }}

{{ 'Total Amount' | trans }} {{ invoiceTotalAmount }}
{#
{{ 'Remaining Amount'| trans }} {{ invoice.getTheInvoiceAmountWhichIsNotPaid }}
#}
{# Pay Invoice block #} {# pay invoice information #}
{# Custom field form#}
{# transaction form#}
{# pay invoice details #}
{# this field will have a value which we want to update. #} {# {% if invoice.getInvoiceGeneratedForUnregisterUsername is empty %}#} {# {% endif %}#} {# {{ invoice.getInvoiceGeneratedForUnregisterUsername is empty ? invoice.getInvGeneratedFor.getFName : invoice.getInvoiceGeneratedForUnregisterUsername ~ ' (Un-register user)' }}#} {# account #}
{# Income head #}
{# payment method.#}
{# transaction date #}
{# transaction amount #}
{# Advance options #}
{{ 'Advance'|trans }} {# dropdown #}
{# form where to write text.#}
{# transaction reference #}
{# upload document #}
{# notes #}
{# submit button #}
{% if invoice.getTheInvoiceStatus == 'paid' or invoice.getTheInvoiceStatus == 'Paid' %}
{{ 'This Invoice has been paid' | trans }}
{% else %} {% endif %}
{% endblock %} {% block ExtraJsFIles %} {% for file in encore_entry_js_files('accounts') %} {% endfor %} {% endblock %}