diff --git a/CHANGELOG.md b/CHANGELOG.md
index c231ad6..bb52582 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,9 @@
+## Version 2.7.0
+
+Compatibility: requires minimum Kimai 2.15.0
+
+- Replaced disallowed invoice value access
+
## Version 2.6.0
Compatibility: requires minimum Kimai 2.15.0
diff --git a/Resources/invoices/demo.html.twig b/Resources/invoices/demo.html.twig
index 5d7c6e9..be1e992 100644
--- a/Resources/invoices/demo.html.twig
+++ b/Resources/invoices/demo.html.twig
@@ -101,9 +101,9 @@
{{ entry.activity.name }} / {{ entry.project.name }}
{% endif %}
-
{{ rate|money(model.calculator.currency) }} |
+ {{ rate|money(invoice['invoice.currency']) }} |
{{ duration }} |
- {{ entry.rate|money(model.calculator.currency) }} |
+ {{ entry.rate|money(invoice['invoice.currency']) }} |
{% endfor %}
@@ -112,20 +112,20 @@
{{ 'invoice.subtotal'|trans }}
|
- {{ model.calculator.subtotal|money(model.calculator.currency) }} |
+ {{ model.calculator.subtotal|money(invoice['invoice.currency']) }} |
{{ 'invoice.tax'|trans }} ({{ model.calculator.vat }}%)
|
- {{ model.calculator.tax|money(model.calculator.currency) }} |
+ {{ model.calculator.tax|money(invoice['invoice.currency']) }} |
{{ 'invoice.total'|trans }}
|
- {{ model.calculator.total|money(model.calculator.currency) }}
+ {{ model.calculator.total|money(invoice['invoice.currency']) }}
|
diff --git a/composer.json b/composer.json
index 2da14b7..8c87f8a 100644
--- a/composer.json
+++ b/composer.json
@@ -3,7 +3,7 @@
"description": "Showcase plugin for Kimai, with demos for many extension points within the core",
"homepage": "https://github.com/Keleo/DemoBundle",
"type": "kimai-plugin",
- "version": "2.6.0",
+ "version": "2.7.0",
"keywords": [
"kimai",
"kimai-plugin"