Überschrift für Tag einfügen
This commit is contained in:
@@ -517,11 +517,13 @@ mpdf-->
|
|||||||
{% set totalDuration = 0 %}
|
{% set totalDuration = 0 %}
|
||||||
{% set totalAmount = 0 %}
|
{% set totalAmount = 0 %}
|
||||||
|
|
||||||
|
{% set currentTag = '' %}
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="project-name"></td>
|
<td class="project-name"></td>
|
||||||
<td class="project-name">{{ invoice[id ~ '.name'] }}</td>
|
<td class="project-name">{{ invoice[id ~ '.name'] }}</td>
|
||||||
<td class="project-name"></td>
|
<td class="project-name"></td>
|
||||||
<td class="project-name">{{ invoice[id ~ '.tags'] }}</td>
|
<td class="project-name"></td>
|
||||||
<td class="project-name"></td>
|
<td class="project-name"></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
@@ -530,6 +532,16 @@ mpdf-->
|
|||||||
|
|
||||||
{% for entry in entries %}
|
{% for entry in entries %}
|
||||||
<!-- only timesheets, rest will be 'Auslagen' later -->
|
<!-- only timesheets, rest will be 'Auslagen' later -->
|
||||||
|
{% if entry['entry.tags'] != currentTag %}
|
||||||
|
<tr>
|
||||||
|
<td class="project-name"></td>
|
||||||
|
<td class="project-name">{{ entry['entry.tags'] }}</td>
|
||||||
|
<td class="project-name"></td>
|
||||||
|
<td class="project-name"></td>
|
||||||
|
<td class="project-name"></td>
|
||||||
|
</tr>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if entry['entry.type'] == 'timesheet' %}
|
{% if entry['entry.type'] == 'timesheet' %}
|
||||||
{% if entry['entry.project_id'] == invoice[id ~ '.id'] %}
|
{% if entry['entry.project_id'] == invoice[id ~ '.id'] %}
|
||||||
{% set totalAmount = totalAmount + entry['entry.total_plain'] %}
|
{% set totalAmount = totalAmount + entry['entry.total_plain'] %}
|
||||||
|
|||||||
Reference in New Issue
Block a user