diff --git a/templates/reporting/user_list_period_data.html.twig b/templates/reporting/user_list_period_data.html.twig index 15f6b82b..5cb98a5e 100644 --- a/templates/reporting/user_list_period_data.html.twig +++ b/templates/reporting/user_list_period_data.html.twig @@ -39,24 +39,18 @@ {% set usersTotalInternalRate = 0 %} {% set usersTotalRate = 0 %} {% for period in attribute(userPeriod, period_attribute) %} - {% if period.totalDuration > 0 %} - {% set usersTotalDuration = usersTotalDuration + period.totalDuration %} - {% set absoluteDuration = absoluteDuration + period.totalDuration %} - {% endif %} - {% if period.totalInternalRate > 0 %} - {% set usersTotalInternalRate = usersTotalInternalRate + period.totalInternalRate %} - {% set absoluteInternalRate = absoluteInternalRate + period.totalInternalRate %} - {% endif %} - {% if period.totalRate > 0 %} - {% set usersTotalRate = usersTotalRate + period.totalRate %} - {% set absoluteRate = absoluteRate + period.totalRate %} - {% endif %} + {% set usersTotalDuration = usersTotalDuration + period.totalDuration %} + {% set absoluteDuration = absoluteDuration + period.totalDuration %} + {% set usersTotalInternalRate = usersTotalInternalRate + period.totalInternalRate %} + {% set absoluteInternalRate = absoluteInternalRate + period.totalInternalRate %} + {% set usersTotalRate = usersTotalRate + period.totalRate %} + {% set absoluteRate = absoluteRate + period.totalRate %} {% set reportDateKey = period.date|report_date %} {% set totalsDuration = totalsDuration|merge({(reportDateKey): (totalsDuration[reportDateKey] + period.totalDuration)}) %} {% set totalsInternalRate = totalsInternalRate|merge({(reportDateKey): (totalsInternalRate[reportDateKey] + period.totalInternalRate)}) %} {% set totalsRate = totalsRate|merge({(reportDateKey): (totalsRate[reportDateKey] + period.totalRate)}) %} {% endfor %} - {% if userPeriod.user.enabled or usersTotalDuration > 0 %} + {% if userPeriod.user.enabled or usersTotalDuration != 0 %}