From ac7f1efc2ae960fa75afacf53f67397e935c4939 Mon Sep 17 00:00:00 2001 From: Martin Rattensberger Date: Mon, 7 Aug 2023 08:14:47 +0200 Subject: [PATCH] =?UTF-8?q?=C3=9Cberschrift=20f=C3=BCr=20Tag=20einf=C3=BCg?= =?UTF-8?q?en?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Kimai2/groupedByProjects.pdf.twig | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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'] %}