{% extends "base.html" %} {% block content %}
| Row Label | {% for header in top_left_headers %}{{ header }} | {% endfor %}Sum | |
|---|---|---|---|
| {% if rownum == 1 %} Stand der Gaszähler (Nm³) {% elif rownum == 2 %} Stand der Gaszähler (Vormonat) (Nm³) {% elif rownum == 3 %} Gasrückführung (Nm³) {% elif rownum == 4 %} Rückführung flüssig (Lit. L-He) {% elif rownum == 5 %} Sonderrückführungen (Lit. L-He) {% elif rownum == 6 %} Bestand in Kannen-1 (Lit. L-He) {% elif rownum == 7 %} Summe Bestand (Lit. L-He) {% elif rownum == 8 %} Best. in Kannen Vormonat (Lit. L-He) {% elif rownum == 9 %} Bezug (Liter L-He) {% elif rownum == 10 %} Rückführ. Soll (Lit. L-He) {% elif rownum == 11 %} Verluste (Soll-Rückf.) (Lit. L-He) {% elif rownum == 12 %} Füllungen warm (Lit. L-He) {% elif rownum == 13 %} Kaltgas Rückgabe (Lit. L-He) – Faktor {% elif rownum == 14 %} Faktor 0.06 {% elif rownum == 15 %} Verbraucherverluste (Liter L-He) {% elif rownum == 16 %} % {% elif rownum == 17 %} Gesamtrückführung (Nm³) {% elif rownum == 18 %} Aufgeteilte Verluste (Liter L-He) {% endif %} | {% for cell in row.cells %} {% if is_start_sheet or rownum == 1 or rownum == 5 or rownum == 6 %} {# Editable in start sheet OR always editable rows (B3, B7, B8) #}{{ cell.value|default:"" }} | {% else %} {# Readonly for non-start sheets #}{{ cell.value|default:"" }} | {% endif %} {% endfor %}{{ row.sum|default_if_none:"" }} |
| Row Label | {% for header in top_right_headers %}{{ header }} | {% endfor %}Sum | ||
|---|---|---|---|---|
| {% if rownum == 1 %} Stand der Gaszähler (Vormonat) (Nm³) {% elif rownum == 2 %} Gasrückführung (Nm³) {% elif rownum == 3 %} Rückführung flüssig (Lit. L-He) {% elif rownum == 4 %} Sonderrückführungen (Lit. L-He) {% elif rownum == 5 %} Sammelrückführungen (Lit. L-He) {% elif rownum == 6 %} Bestand in Kannen-1 (Lit. L-He) {% elif rownum == 7 %} Summe Bestand (Lit. L-He) {% elif rownum == 8 %} Best. in Kannen Vormonat (Lit. L-He) {% elif rownum == 9 %} Bezug (Liter L-He) {% elif rownum == 10 %} Rückführ. Soll (Lit. L-He) {% elif rownum == 11 %} Verluste (Soll-Rückf.) (Lit. L-He) {% elif rownum == 12 %} Füllungen warm (Lit. L-He) {% elif rownum == 13 %} Kaltgas Rückgabe (Lit. L-He) – Faktor {% elif rownum == 14 %} Faktor 0.06 {% elif rownum == 15 %} Verbraucherverluste (Liter L-He) {% elif rownum == 16 %} % {% endif %} | {% for cell in row.cells %} {% with client_name=cell.client.name|default:"" %} {# Determine if this cell should be editable #} {% if is_start_sheet %}{{ cell.value|default:"" }} | {% elif rownum == 4 or rownum == 6 or rownum == 1 and client_name in "M3 Thiele,M3 Buntkowsky,M3 Gutfleisch" %}{{ cell.value|default:"" }} | {% else %}{% if rownum == 2 %} Aufteilung Nach Verbrauch {% else %} {{ cell.value|default:"" }} {% endif %} | {% endif %} {% endwith %} {% endfor %}{{ row.sum|default_if_none:"" }} |
| Row Label | Σ |
|---|---|
| {{ row.label }} | {{ row.sum|default_if_none:"" }} |
| Gasspeicher | Volumen | bar | korrigiert | Nm³ | Lit. LHe |
|---|---|---|---|---|---|
| {% if rownum == 1 %}Batterie 1 {% elif rownum == 2 %}2 {% elif rownum == 3 %}3 {% elif rownum == 4 %}4 {% elif rownum == 5 %}5 {% elif rownum == 6 %}6 {% elif rownum == 7 %}2 Bündel {% elif rownum == 8 %}2 Ballone {% elif rownum == 9 %}Reingasspeicher {% elif rownum == 10 %}Gasbestand {% endif %} | {% for cell in row %} {% if forloop.counter0 < 5 %} {% if forloop.counter0 == 0 %} {# Volumen – fixed, not editable #}{% if cell.value %} {{ cell.value }} {% else %} {% if rownum == 1 %}2,4 {% elif rownum == 2 %}5,1 {% elif rownum == 3 %}4,0 {% elif rownum == 4 %}1,0 {% elif rownum == 5 %}4,0 {% elif rownum == 6 %}0,4 {% elif rownum == 7 %}1,2 {% elif rownum == 8 %}20,0 {% elif rownum == 9 %}5,0 {% endif %} {% endif %} | {% elif forloop.counter0 == 1 %} {# bar – editable only for rows 1–9 (not Gasbestand) #} {% if rownum < 10 %}{{ cell.value|default:"" }} | {% else %}{{ cell.value|default:"" }} | {% endif %} {% else %} {# korrigiert, Nm³, Lit. LHe – calculated, not editable #}{{ cell.value|default:"" }} | {% endif %} {% endif %} {% endfor %}
| Verbraucherbestand L-He | ||||||
| + Anlage | Gefäss 2,5 | {% with cell=cells_by_table.bottom_2.0.0 %}{{ cell.value|default:"" }} | {% endwith %}Gefäss 1,0 | {% with cell=cells_by_table.bottom_2.0.1 %}{{ cell.value|default:"" }} | {% endwith %}||
| + Kaltgas | Gefäss 2,5 | Gefäss 1,0 | ||||
| Bestand flüssig He | ||||||
| Gesamtbestand neu | ||||||
| Bezeichnung | F | G | I | Nm³ (J) | Lit. L-He (K) |
|---|---|---|---|---|---|
| Gesamtbestand Vormonat | {# J46 comes from bottom_3 row 0, col 3 #} {% with cell=cells_by_table.bottom_3.0.3 %} | {{ cell.value|default:"" }} | {% endwith %} {# K46 comes from bottom_3 row 0, col 4 (prev month K44) #} {% with cell=cells_by_table.bottom_3.0.4 %}{% if prev_summary %} {{ prev_summary.gesamtbestand_neu_lhe|default_if_none:'' }} {% endif %} | {% endwith %}||
| + Verbrauch / Anlage | {% with cell=cells_by_table.bottom_3.1.1 %} | {{ cell.value|default:"" }} | {% endwith %} {% with cell=cells_by_table.bottom_3.1.2 %}{{ cell.value|default:"" }} | {% endwith %}||
| Gesamtbestand inkl. Anlage | |||||
| Gesamtbestand (akt. Monat) | |||||
| Verbrauch Sonstiges | {% with cell=cells_by_table.bottom_3.4.2 %} | {{ cell.value|default:"" }} | {% endwith %}|||
| Differenz Bestand | |||||
| Verbraucherverluste (aus Übersicht) | |||||
| Differenz Bilanz |