{# project \App\Entity\Project #} {# details \App\Reporting\ProjectDetails\ProjectDetailsModel #} {% macro project_budget(project, details, prefix) %} {% set chartPrefix = (prefix is null ? random() : prefix) ~ 'Budget' %} {% set chart = is_granted('budget', project) %} {% set showMoneyBudget = is_granted('budget', project) and project.hasBudget() %} {% set showTimeBudget = is_granted('time', project) and project.hasTimeBudget() %} {% if showMoneyBudget or showTimeBudget %} {% from "macros/charts.html.twig" import bar_chart %} {% set currency = project.customer.currency %} {% if project.isMonthlyBudget() %}