{% extends "base.html" %} {% block title %}{{ period.name }}{% endblock %} {% block content %}

Periodo facturado

{{ period.name }}

{% if bridge_error %} Sin bridge {% elif summary %} {{ 'Revisar medicion' if summary.has_inverter_issue else 'Medicion OK' }} {% else %} Sin calculo {% endif %}
Inicio {{ period.starts_on }} Rango {% if summary %} {{ summary.period.effective_start }} a {{ summary.period.effective_end }} {% else %} Pendiente de calculo {% endif %} Fuente {% if summary %} {{ 'Compania' if summary.consumption_source == 'utility' else 'Red' }} {% else %} Sin definir {% endif %} {% if period.notes %} Notas {{ period.notes }} {% endif %}

Resumen

Consumo calculado

{% if summary %} {{ 'Abierto' if summary.period.is_open else 'Cerrado' }} {% endif %}
{% if bridge_error %}
{{ bridge_error }}
{% elif summary %}
Facturable {{ summary.billing_consumption_kwh | kwh }} kWh Servicio {{ summary.selected_variant.service_total | money }} Factura {{ summary.selected_variant.total | money }} Solar {{ summary.solar_pv_kwh | kwh }} kWh
Red: {{ summary.inverter_consumption_kwh | kwh }} kWh Carga total: {{ summary.inverter_load_kwh | kwh }} kWh Medicion: {{ summary.inverter_issue_summary }}
{% else %}
Aun no hay datos suficientes para este periodo.
{% endif %}
{% if summary %}
Total factura {{ summary.selected_variant.total | money }} {{ summary.daily_points | length }} registros diarios {% if summary.alternate_variant %} Con {{ summary.alternate_variant.label | lower }}: {{ summary.alternate_variant.total | money }} {% endif %}
Red {{ summary.inverter_consumption_kwh | kwh }} kWh Consumo de red medido por SolarAssistant
Energia electrica {{ summary.selected_variant.energy_cost | money }} Tarifa {{ summary.config_source.bands_scope }} con {{ summary.selected_variant.label | lower }} {% if summary.alternate_variant %} Con {{ summary.alternate_variant.label | lower }}: {{ summary.alternate_variant.energy_cost | money }} {% endif %}
Compania {% if summary.utility_consumption_kwh is not none %}{{ summary.utility_consumption_kwh | kwh }} kWh{% else %}Sin dato{% endif %} {% if summary.utility_consumption_kwh is not none %}Lectura cargada manualmente{% else %}Todavia no cargaste lectura{% endif %}
Diferencia {% if summary.consumption_difference_kwh is not none %} {{ summary.consumption_difference_kwh | kwh }} kWh {% else %} Sin dato {% endif %} {% if summary.consumption_difference_percent is not none %} {{ summary.consumption_difference_percent | percent }} {% else %} Carga una lectura para comparar {% endif %}
Total servicio energia {{ summary.selected_variant.service_total | money }} Energia + conceptos de servicio {% if summary.alternate_variant %} Con {{ summary.alternate_variant.label | lower }}: {{ summary.alternate_variant.service_total | money }} {% endif %}
IVA y otros conceptos {{ summary.selected_variant.other_concepts_total | money }} Conceptos fuera del servicio {% if summary.alternate_variant %} Con {{ summary.alternate_variant.label | lower }}: {{ summary.alternate_variant.other_concepts_total | money }} {% endif %}
Carga total del inversor {{ summary.inverter_load_kwh | kwh }} kWh Energia total consumida segun el inversor durante este periodo
Generacion solar {{ summary.solar_pv_kwh | kwh }} kWh Energia generada por los paneles en este periodo
Integridad inversor {{ 'Revisar' if summary.has_inverter_issue else 'OK' }} {{ summary.inverter_issue_summary }}
Usado para calcular {{ summary.billing_consumption_kwh | kwh }} kWh {% if summary.consumption_source == 'utility' %}Tomado de la compania{% else %}Tomado de la red del inversor{% endif %} {% if can_manage %}
{% if summary.utility_consumption_kwh is not none %}
{% else %} Compania {% endif %}
{% endif %}
Factura teorica sin solar {{ summary.load_variant.total | money }} Calculada con la carga total del inversor: {{ summary.inverter_load_kwh | kwh }} kWh
Ahorro solar estimado {{ summary.solar_savings_total | money }} Diferencia entre la factura actual y la factura teorica sin aporte solar. Factura actual: {{ summary.selected_variant.total | money }} | Sin solar: {{ summary.load_variant.total | money }}

Integridad

Mediciones del inversor

Estado: {{ 'Revisar' if summary.has_inverter_issue else 'OK' }}

Cobertura: {{ summary.coverage_observed_day_count }}/{{ summary.coverage_expected_day_count }} dias con medicion.

{% if summary.has_missing_days %}

Faltantes detectados: {{ summary.missing_day_count }} dias sin medicion.

Fechas: {{ summary.missing_dates_preview | join(', ') }} {% if summary.missing_day_count > summary.missing_dates_preview | length %}...{% endif %}

{% else %}

No se detectaron dias faltantes automaticamente. Un valor diario en 0 no se considera error.

{% endif %}
{% if period_comparison %}

Comparacion

Red vs compania

Consumo mensual {% if period_comparison.source == 'utility' %} El calculo usa la lectura de la compania. {% else %} El calculo usa la red medida por el inversor. {% endif %}
Red{{ period_comparison.inverter_kwh | kwh }} kWh
Compania{% if period_comparison.utility_kwh is not none %}{{ period_comparison.utility_kwh | kwh }} kWh{% else %}Sin dato{% endif %}
{% if period_comparison.utility_kwh is not none %}
{% else %}
{% endif %}
Usado para calcular: {{ period_comparison.billing_kwh | kwh }} kWh {% if period_comparison.difference_kwh is not none %} Diferencia: {{ period_comparison.difference_kwh | kwh }} kWh {% if period_comparison.difference_percent is not none %}({{ period_comparison.difference_percent | percent }}){% endif %} {% else %} Carga la lectura de la compania para comparar. {% endif %}
{% endif %}

Desglose

Franjas aplicadas

{% for item in summary.energy_breakdown %} {% else %} {% endfor %}
Franja Usado Precio Subtotal
{{ item.label }} {{ item.used_kwh | kwh }} kWh {{ item.price_per_kwh | money }} {{ item.subtotal | money }}
No hay franjas para calcular.

Desglose

Servicio de energia

{% for item in summary.service_breakdown %} {% else %} {% endfor %}
Concepto Tipo Configuracion Resultado
{{ item.name }} {% if item.alias %} {{ item.alias }} {% endif %} {% if item.kind == 'energy' %}Tarifa{% elif item.kind == 'fixed' %}Fijo{% else %}Formula{% endif %} {% if item.kind == 'fixed' %} {{ item.configured_value | money }} {% else %} {{ item.configured_value }} {% endif %} {{ item.amount | money }}
Sin conceptos de servicio.
Total servicio de energia {{ summary.service_total | money }}

Desglose

IVA y otros conceptos

{% for item in summary.other_concepts_breakdown %} {% else %} {% endfor %}
Concepto Tipo Configuracion Resultado
{{ item.name }} {% if item.alias %} {{ item.alias }} {% endif %} {% if item.kind == 'fixed' %}Fijo{% else %}Formula{% endif %} {% if item.kind == 'fixed' %} {{ item.configured_value | money }} {% else %} {{ item.configured_value }} {% endif %} {{ item.amount | money }}
Sin conceptos en IVA y otros.
Total IVA y otros conceptos {{ summary.other_concepts_total | money }}
{% endif %}
{{ 'Edicion' if can_manage else 'Datos' }} Periodo facturado {{ 'Editar' if can_manage else 'Ver' }}
{% if can_manage %}
{% else %}
Nombre{{ period.name }}
Inicio{{ period.starts_on }}
Medido por la compania{% if period.utility_measured_kwh is not none %}{{ period.utility_measured_kwh | kwh }} kWh{% else %}Sin dato{% endif %}
Error manual{{ 'Si' if period.has_inverter_data_issue else 'No' }}
Notas{{ period.notes or 'Sin notas' }}
{% endif %}
Tarifa mensual Franjas de este periodo {{ 'Editar' if can_manage else 'Ver' }}

Configuracion efectiva de tarifas de este periodo.

{% for band in effective_bands %} {% else %} {% endfor %}
Etiqueta Desde Hasta Precio por kWh
{{ band.label or 'Franja' }} {{ band.from_kwh | kwh }} kWh {% if band.to_kwh is none %}Sin limite{% else %}{{ band.to_kwh | kwh }} kWh{% endif %} {{ band.price_per_kwh | money }}
No hay franjas configuradas.
{% if can_manage %}

Estas franjas quedan guardadas para este mes. Los cambios no afectan a otros periodos.

{% for band in period_bands %}
{% else %}

Este periodo todavia no tiene una tarifa propia.

{% endfor %}
{% endif %}
Cargo mensual Cargos fijos del periodo {{ 'Editar' if can_manage else 'Ver' }}
{% for rule in effective_fixed %} {% else %} {% endfor %}
Nombre Seccion Importe Dashboard
{{ rule.name }} {{ 'Servicio de energia' if (rule.section or 'service') == 'service' else 'IVA y otros conceptos' }} {{ rule.amount | money }} {{ 'Si' if rule.show_on_dashboard else 'No' }}
No hay cargos fijos configurados.
{% if can_manage %}

Estos importes fijos quedan guardados para este mes. Los cambios no afectan a otros periodos.

{% for rule in override_fixed %}
{% else %}

Este periodo todavia no tiene cargos fijos propios.

{% endfor %}
{% endif %}
Reglas por formula Conceptos calculados del periodo {{ 'Editar' if can_manage else 'Ver' }}
{% for rule in effective_taxes %} {% else %} {% endfor %}
Nombre Seccion Alias Expresion
{{ rule.name }} {{ 'Servicio de energia' if rule.section == 'service' else 'IVA y otros conceptos' }} {{ rule.alias or '-' }} {{ rule.expression }}
No hay conceptos calculados configurados.
{% if can_manage %}
{% for rule in override_taxes %}
{% else %}

Sin overrides de impuestos. Se usa la configuracion base.

{% endfor %}
{% endif %}
{% if summary and summary.daily_energy_cost_breakdown %}

Detalle diario

Costo de energia por dia

{{ summary.daily_cost_note }}

{% for item in summary.daily_energy_cost_breakdown %} {% endfor %}
Fecha Medicion Red inversor Usado para calcular Carga total Solar PV Costo energia Acumulado
{{ item.date }} {% if item.has_measurement %} Con medicion {% else %} Sin medicion {% endif %} {{ item.inverter_grid_kwh | kwh }} kWh {{ item.billed_kwh | kwh }} kWh {{ item.load_kwh | kwh }} kWh {{ item.solar_pv_kwh | kwh }} kWh {{ item.energy_cost | money }} {{ item.cumulative_energy_cost | money }}
Total costo de energia del periodo {{ summary.energy_cost | money }}
{% if daily_cost_chart or daily_energy_chart %}

Graficos diarios

Evolucion diaria

Visualiza el costo diario y el comportamiento de la red del inversor junto a la generacion solar.

{% if daily_cost_chart %}

{{ daily_cost_chart.title }}

{{ daily_cost_chart.subtitle }}

{% for item in daily_cost_chart.legend %} {{ item.label }} {% endfor %}
{% endif %} {% if daily_energy_chart %}

{{ daily_energy_chart.title }}

{{ daily_energy_chart.subtitle }}

{% for item in daily_energy_chart.legend %} {{ item.label }} {% endfor %}
{% endif %}
{% endif %} {% endif %} {% endblock %}