Skip to content

Commit bd08b04

Browse files
committed
replaced invoice value access
1 parent bf94ca3 commit bd08b04

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## Version 2.7.0
2+
3+
Compatibility: requires minimum Kimai 2.15.0
4+
5+
- Replaced disallowed invoice value access
6+
17
## Version 2.6.0
28

39
Compatibility: requires minimum Kimai 2.15.0

Resources/invoices/demo.html.twig

+5-5
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@
101101
{{ entry.activity.name }} / {{ entry.project.name }}
102102
{% endif %}
103103
</td>
104-
<td nowrap class="text-nowrap text-right">{{ rate|money(model.calculator.currency) }}</td>
104+
<td nowrap class="text-nowrap text-right">{{ rate|money(invoice['invoice.currency']) }}</td>
105105
<td nowrap class="text-nowrap text-right">{{ duration }}</td>
106-
<td nowrap class="text-nowrap text-right">{{ entry.rate|money(model.calculator.currency) }}</td>
106+
<td nowrap class="text-nowrap text-right">{{ entry.rate|money(invoice['invoice.currency']) }}</td>
107107
</tr>
108108
{% endfor %}
109109
</tbody>
@@ -112,20 +112,20 @@
112112
<td colspan="4" class="text-right">
113113
{{ 'invoice.subtotal'|trans }}
114114
</td>
115-
<td class="text-right">{{ model.calculator.subtotal|money(model.calculator.currency) }}</td>
115+
<td class="text-right">{{ model.calculator.subtotal|money(invoice['invoice.currency']) }}</td>
116116
</tr>
117117
<tr>
118118
<td colspan="4" class="text-right">
119119
{{ 'invoice.tax'|trans }} ({{ model.calculator.vat }}%)
120120
</td>
121-
<td class="text-right">{{ model.calculator.tax|money(model.calculator.currency) }}</td>
121+
<td class="text-right">{{ model.calculator.tax|money(invoice['invoice.currency']) }}</td>
122122
</tr>
123123
<tr>
124124
<td colspan="4" class="text-right text-nowrap">
125125
<strong>{{ 'invoice.total'|trans }}</strong>
126126
</td>
127127
<td class="text-right">
128-
<strong>{{ model.calculator.total|money(model.calculator.currency) }}</strong>
128+
<strong>{{ model.calculator.total|money(invoice['invoice.currency']) }}</strong>
129129
</td>
130130
</tr>
131131
</tfoot>

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Showcase plugin for Kimai, with demos for many extension points within the core",
44
"homepage": "https://github.com/Keleo/DemoBundle",
55
"type": "kimai-plugin",
6-
"version": "2.6.0",
6+
"version": "2.7.0",
77
"keywords": [
88
"kimai",
99
"kimai-plugin"

0 commit comments

Comments
 (0)