diff --git a/templates/invoice/renderer/default.html.twig b/templates/invoice/renderer/default.html.twig index c857dee5..7a226ee5 100644 --- a/templates/invoice/renderer/default.html.twig +++ b/templates/invoice/renderer/default.html.twig @@ -64,11 +64,20 @@
{% for entry in model.calculator.entries %} + {% set duration = entry.duration|duration() %} + {% if entry.fixedRate is not null %} + {% set rate = entry.fixedRate %} + {% set duration = 1 %} + {% elseif entry.hourlyRate is not null %} + {% set rate = entry.hourlyRate %} + {% else %} + {% set rate = app.user.getPreferenceValue('hourly_rate') %} + {% endif %}