diff --git a/Kimai2/groupedByProjects.pdf.twig b/Kimai2/groupedByProjects.pdf.twig index a9d8123..e0b0c29 100644 --- a/Kimai2/groupedByProjects.pdf.twig +++ b/Kimai2/groupedByProjects.pdf.twig @@ -517,11 +517,13 @@ mpdf--> {% set totalDuration = 0 %} {% set totalAmount = 0 %} + {% set currentTag = '' %} + {{ invoice[id ~ '.name'] }} - {{ invoice[id ~ '.tags'] }} + @@ -530,6 +532,16 @@ mpdf--> {% for entry in entries %} + {% if entry['entry.tags'] != currentTag %} + + + {{ entry['entry.tags'] }} + + + + + {% endif %} + {% if entry['entry.type'] == 'timesheet' %} {% if entry['entry.project_id'] == invoice[id ~ '.id'] %} {% set totalAmount = totalAmount + entry['entry.total_plain'] %}