Norway: KE Nett #31
Replies: 2 comments
-
In the new release, VAT can be added as a config option. This means the template does not need the VAT anymore. |
Beta Was this translation helpful? Give feedback.
-
Made a template for Bømlo kraftnett {% set s = { code for the currency stolen from stigvi:
|
Beta Was this translation helpful? Give feedback.
-
{% set s = {
"day": 0.6676,
"night": 0.5426,
"cert": 0.01,
"vat": 1.25,
"eur": 10.36
}
%}
{% if now().isoweekday() >= 1 and now().isoweekday() <= 5 %}
{% if now().hour >= 6 and now().hour < 22 %}
{{(current_price * s.eur * s.vat + s.day + s.cert) | float}}
{% else %}
{{(current_price * s.eur * s.vat + s.night + s.cert) | float}}
{% endif %}
{% else %}
{{(current_price * s.eur * s.vat + s.night + s.cert) | float}}
{% endif %}
Beta Was this translation helpful? Give feedback.
All reactions