{% set bill = constant('\\Alsuite\\ProjectBundle\\Entity\\Tactic::BILL') %} {% set purchase = constant('\\Alsuite\\ProjectBundle\\Entity\\Tactic::PURCHASE') %}
{% for target in pagination %} {% set id = target.getId() %}
{##} {##}
{{ target.getDetail() }} {% if target.getCategory() is not null %} {{ target.getCategory().getName() }} {% endif %}
{% if target.getSubCategory() is not null %} {{ target.getSubCategory().getName() }} {% endif %}
{% if target.getOutput() is not null %} {{ target.getOutput().getProject().getName() }} {% else %} {{ target.getProject().getName() }} {% endif %} {{ target.getWorkPlan().getOrganizationCurrency() }} {{ target.getBudget()|number_format(2, '.', ',') }}
{{ target.getWorkPlan().getOrganizationCurrency() }} {{ (target.getBudget() - target.getAmountSpent())|number_format(2, '.', ',') }}
{{ include('AlsuiteProjectBundle:Target:del.html.twig', {'id': id, 'action': 'Delete', 'object': 'Target', 'route': path('target_del', {'id': id})}, with_context = false) }} {{ include('AlsuiteProjectBundle:Target:targetDetails.html.twig', {'target': target}, with_context = false) }} {{ render(controller('AlsuiteProjectBundle:Target:getIndicators', {'id': target.getId()})) }}
{% else %}
There are no targets under this work plan.
Create A Target
{% endfor %}
{{ knp_pagination_render(pagination) }}