{% extends "::base.html.twig" %} {% block collection_widget %} {% spaceless %} {% if prototype is defined %} {% set attr = attr|merge({'data-prototype': block('collection_item_widget') }) %} {% endif %} {% set attr = attr|merge({'data-allow-add': allow_add ? 1 : 0}) %} {% set attr = attr|merge({'data-allow-remove': allow_delete ? 1 : 0 }) %} {% set attr = attr|merge({'data-name-prefix': full_name}) %} {% for rows in form %} {# Though form_row can be used, its styling needs to be worked on first #} {% endfor %}
Select/Describe Item Vendor (for bills and purchases)AmountTaxesAction
{{ form_widget(rows.standardItem) }}{{ form_errors(rows.standardItem) }} {{ form_widget(rows.item) }} {{ form_widget(rows.vendor) }}{{ form_errors(rows.vendor) }}{{ form_widget(rows.needsVendor) }} {{ form_widget(rows.amount) }}{{ form_errors(rows.amount) }} {{ form_widget(rows.tax) }}
Sub Total 0.00
Tax Added Total 0.00
Tax Withheld Total 0.00
Grand Total 0.00
{% endspaceless %} {% endblock collection_widget %} {% block collection_item_widget %} {% spaceless %} {# Though form_row can be used, its styling needs to be worked on first #} {{ form_widget(prototype.standardItem) }}{{ form_errors(prototype.standardItem) }} {{ form_widget(prototype.item) }} {{ form_widget(prototype.vendor) }}{{ form_errors(prototype.vendor) }}{{ form_widget(prototype.needsVendor) }} {{ form_widget(prototype.amount) }}{{ form_errors(prototype.amount) }} {{ form_widget(prototype.tax) }} {% endspaceless %} {% endblock collection_item_widget %} {% block button_widget %} {% spaceless %} {% if label is empty %} {% set label = name|humanize %} {% endif %} {% if add_cancel_btn %} {{ cancel_label|title }} {% endif %} {% if add_antispam_button %} {% endif %} {% endspaceless %} {% endblock button_widget %} {% block title 'Add/Edit Requisition Lines' %} {% block content %} {% if level is null %} {{ include(workplan_links, {'show_search': false}, with_context = false) }} {% endif %} {% form_theme form _self %} {% form_theme form.reqnLines 'AlsuiteAssetsBundle:Form:collection-theme.html.twig' _self %}
Add/Edit Requisition Lines
{{ include(mini_tactic, {'tactic': tactic}, with_context = false) }}
To add Requisition Lines, click Line
{{ form_start(form) }} {{ form_row(form.reqnLines) }} {{ form_end(form) }}
{% endblock %} {% block javascripts %} {% set added = constant('\\Alsuite\\FinanceBundle\\Entity\\Tax::TYPE_ADDED') %} {% set deducted = constant('\\Alsuite\\FinanceBundle\\Entity\\Tax::TYPE_DEDUCTED') %} {{ form_javascript(form) }} {% endblock %}