heimstaden-myhome

alternative frontend for myhome.heimstaden.com
git clone https://git.ce9e.org/heimstaden-myhome.git

commit
5240aa99a2cd6e8d1c77d9469493f20fccd8ffa6
parent
b1b8cb4ae12e9c439a586ea457c5ea516236d540
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2025-03-07 06:02
round money amounts

Diffstat

M templates/index.html 12 ++++++------

1 files changed, 6 insertions, 6 deletions


diff --git a/templates/index.html b/templates/index.html

@@ -158,7 +158,7 @@
  158   158 
  159   159         <div class="bubble" id="finance">
  160   160             <h2>{{ "financeYourBalance"|translate }}</h2>
  161    -1             <div class="balance">{{ balance }}€</div>
   -1   161             <div class="balance">{{ '%.2f€'|format(balance) }}</div>
  162   162             {% if balance == 0 %}
  163   163                 <p>{{ "financeBalanceZero"|translate }}</p>
  164   164             {% elif balance > 0 %}
@@ -206,7 +206,7 @@
  206   206                                 <tr>
  207   207                                     <th>{{ t.txt }}</th>
  208   208                                     <td>{{ t.transDate|timestamp2date }}</td>
  209    -1                                     <td class="text-end">{{ t.amountCur }}€</td>
   -1   209                                     <td class="text-end">{{ '%.2f€'|format(t.amountCur) }}</td>
  210   210                                     {# TODO: paid #}
  211   211                                 </tr>
  212   212                             {% endfor %}
@@ -227,14 +227,14 @@
  227   227                         {% for part in rent %}
  228   228                             <tr>
  229   229                                 <th>{{ part.local_product }}</th>
  230    -1                                 <td class="text-end">{{ part.rent_amount }}€</td>
  231    -1                                 <td class="text-end">{{ part.gross_amount }}€</td>
   -1   230                                 <td class="text-end">{{ '%.2f€'|format(part.rent_amount) }}</td>
   -1   231                                 <td class="text-end">{{ '%.2f€'|format(part.gross_amount) }}</td>
  232   232                             </tr>
  233   233                         {% endfor %}
  234   234                         <tr>
  235   235                             <th>Total</th>
  236    -1                             <td class="text-end">{{ rent|sum(attribute='rent_amount') }}€</td>
  237    -1                             <td class="text-end">{{ rent|sum(attribute='gross_amount') }}€</td>
   -1   236                             <td class="text-end">{{ '%.2f€'|format(rent|sum(attribute='rent_amount')) }}</td>
   -1   237                             <td class="text-end">{{ '%.2f€'|format(rent|sum(attribute='gross_amount')) }}</td>
  238   238                         </tr>
  239   239                     </tbody>
  240   240                 </table>