FACTURA ELECTRICIDAD
{% if factura.dias_fact > 0 %}
Facturación conforme al PVPC de {{ factura.consumo_total }} kWh en {{ factura.dias_fact }} días ({{ (factura.consumo_total
/ factura.dias_fact)|round(1) }} kWh/día), en el periodo comprendido entre {{ factura.ts_ini }} y {{ factura.ts_fin }},
por un importe total de {{ factura.total_factura }} €, lo que supone un coste de
{{ (factura.total_factura / factura.dias_fact)|round(2) }} € al día{% if factura.consumo_total > 0 %} (pagando finalmente
por el kWh un coste medio de {{ (factura.total_factura / factura.consumo_total)|round(6) }} €/kWh){% endif %}.
{% else %}
Facturación conforme al PVPC de {{ factura.consumo_total }}.
{% endif %}
Fecha inicio | {{ factura.ts_ini }} |
Fecha final | {{ factura.ts_fin }} |
Peaje de acceso | {{ factura.cod_peaje }} ({{ factura.desc_peaje }}) |
Potencia contratada | {{ factura.p_contrato }} kW |
Consumo periodo | {{ factura.consumo_total }} kWh |
¿Bono Social? | {% if factura.con_bono %}Sí{% else %}No{% endif %} |
Equipo de medida | {{ factura.coste_medida }} € |
Impuestos | {{ factura.desc_impuesto }} |
Días facturables | {{ factura.dias_fact }} |
Término de potencia contratada{{ factura.coste_termino_fijo }} €
{% for periodo in factura.periodos_fact %}
{% for ndays, nd_year, year, coste_p, coef_coste in periodo %}
{% if ndays > 0 %}
{{ factura.p_contrato }}kW * {{ coef_coste }}€/kW/año * {{ ndays }}/{{ nd_year }} ({{ year }}){{ coste_p|round(2) }} €
{% endif%}
{% endfor %}
{% endfor %}
Término de energía consumida{{ factura.coste_termino_consumo }} €
{##}
{% if factura.periodos_fact[0]|count == 1 %}
{% for tea, tcu, consumo_p in factura.tea_tcu_consumo %}
{% if consumo_p > 0 %}
Periodo {{ loop.index }} ({% if loop.index0 == 0 %}Punta{% elif loop.index0 == 1 %}Valle{% else %}Supervalle{% endif %}): {{ ((tea + tcu) / consumo_p) |round(6) }} €/kWh{{(tea + tcu) |round(2) }} €
- Peaje de acceso: {{ consumo_p|round(0)|int }}kWh * {{ (tea / consumo_p)|round(6) }}€/kWh = {{ tea|round(2) }}€
- Coste de la energía: {{ consumo_p|round(0)|int }}kWh * {{ (tcu / consumo_p)|round(6) }}€/kWh = {{ tcu|round(2) }}€
{% endif %}
{% endfor %}
{% elif factura.consumo_total > 0 %}
{% for tea, tcu, consumo_p in factura.tea_tcu_consumo %}
{% if (loop.index0 == 0) and (factura.ts_ini[:4] != factura.ts_ini[:4]) %}
* Tramo {{ loop.index }}, de {{ factura.ts_ini }} a {{ factura.ts_ini[:4] }}-12-31
{% elif (factura.ts_ini[:4] != factura.ts_ini[:4]) %}
* Tramo {{ loop.index }}, de 01/01/{{ factura.ts_fin[:4] }}-01-01 a {{ factura.ts_fin }}
{% endif %}
{% for consumo_p_i in consumo_p %}
{% if consumo_p_i > 0 %}
Periodo {{ loop.index }} ({% if loop.index0 == 0 %}Punta{% elif loop.index0 == 1 %}Valle{% else %}Supervalle{% endif %}): {{ ((tea[loop.index0] + tcu[loop.index0]) / consumo_p_i) |round(6) }} €/kWh{{(tea[loop.index0] + tcu[loop.index0]) |round(2) }} €
- Peaje de acceso: {{ consumo_p_i|round(0)|int }}kWh * {{ (tea[loop.index0] / consumo_p_i)|round(6) }}€/kWh = {{ tea[loop.index0]|round(2) }}€
- Coste de la energía: {{ consumo_p_i|round(0)|int }}kWh * {{ (tcu[loop.index0] / consumo_p_i)|round(6) }}€/kWh = {{ tcu[loop.index0]|round(2) }}€
{% endif %}
{% endfor %}
{% endfor %}
{% endif %}
{% if factura.con_bono %}
Descuento por bono social{{ factura.descuento_bono_social }} €
{% endif %}
Impuesto eléctrico{{ factura.coste_impuesto_elec }} €
{{ factura.impuesto_elec }}% x ({{ factura.coste_termino_fijo }}€ + {{ factura.coste_termino_consumo }}€)
Equipo de medida{{ factura.coste_medida }} €
IVA o equivalente{{ factura.coste_iva }} €
{% if factura.tipos_iva[0] != factura.tipos_iva[1] %}
{{ (factura.tipos_iva[0] * 100)|round(0)|int }}% de {{ (factura.coste_termino_fijo + factura.coste_termino_consumo + factura.descuento_bono_social)|round(2) }}€ + {{ (factura.tipos_iva[1] * 100)|round(0)|int }}% de {{ factura.coste_medida }}€
{% else %}
{{ (factura.tipos_iva[0] * 100)|round(0)|int }}% de {{ (factura.coste_termino_fijo + factura.coste_termino_consumo + factura.descuento_bono_social + factura.coste_medida)|round(2) }}€
{% endif %}
TOTAL{{ factura.total_factura }} €