{% extends "base.html.twig" %} {% block BeforeAnyCSSFile %} {% for file in encore_entry_css_files('select2__init') %} {% endfor %} {% endblock %} {% block ExtraCSSFiles %} {% endblock %} {% block pageLabel %} {{ inv_ob.id is empty ? 'Add new invoice'|trans : 'Update invoice'|trans }} {% endblock %} {% block recordLength %} {% endblock %} {% block MainContent %}
{# Add invoice sections #}
{# this field will have a value which we want to update. #} {# invoice reference #}
{# payment method.#}
{# invoice generation date #}
{# invoice due date #}
{# is it related to the item stock or to the stock items.#}
   
{# register user full reference #}
{# un register user name #}
{# notes #}
{% if app.request.attributes.get('id') is not empty %}
{# invoice action buttons #}
{#invoice action buttons#} {% if is_granted("ROLE_ADMIN") %} {{ 'Edit'|trans }} {% endif %}    {# View Invoice #} {{ 'View Invoice'|trans }}    {# print invoice #} {{ 'Print Invoice'|trans }}    {# view challan#} {{ 'View Challan'|trans }}    {# print challan #} {{ 'Print Challan'|trans }}
{% endif %}
{# Add invoice items #}
{# Heading #}

{{ 'Invoice items'|trans }}  

    {# Button to add more invoice item #}
{# form where to write text.#}
{# show the existing invoice items. if exits: #}
{% for i_i in inv_ob.getInvoiceItems.toArray %}
{# invoice item amount #}
{# invoice item description #}
{# Button to delete the invoice item from database #}

{# #}{# discount invoice item amount #} {#
#} {# #} {# #} {#
#} {# #}{# discount invoice item description #} {#
#} {# #} {# #} {#
#}
{% endfor %}
{# invoice items #}
{# invoice item amount #}
{# invoice item description #}
{# Button to remove the invoice item #}

{# #}{# discount invoice item description #} {#
#} {#
#} {# #} {#
#} {# #} {#
#} {# #} {# #}{# discount invoice item amount #} {#
#} {#
#} {# #} {#
#} {# #} {#
#}
{# add invoice item here, when press on the add invoice link#}
{# submit button #}
{% endblock %} {% block ExtraJsFIles %} {% for file in encore_entry_js_files('accounts') %} {% endfor %} {% endblock %}