From 2e0a6909cbfb2479edd7fba78fa4d0135a79ae3f Mon Sep 17 00:00:00 2001 From: Benedict Börger Date: Sat, 23 Mar 2019 15:40:35 +0100 Subject: [global] refactoring code base --- templates/balance.html.tera | 109 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 templates/balance.html.tera (limited to 'templates/balance.html.tera') diff --git a/templates/balance.html.tera b/templates/balance.html.tera new file mode 100644 index 0000000..13dc39d --- /dev/null +++ b/templates/balance.html.tera @@ -0,0 +1,109 @@ + + + + + + + + + Transaction Overview for account {{ account_name }} + + + + +
+

Balance {{ account_name }}

+
+
to + +
+
+
+
+ + + + + + + + + + + {% set balance_sum = 0 %} + {% for month in months %} + + + + + {% set balance = month.earned - month.spent %} + {% if balance >= 0 %} + + {% else %} + + {% endif %} + + {% set_global balance_sum = balance_sum + balance %} + {% endfor %} + + + + + {% if balance_sum >= 0 %} + + {% else %} + + {% endif %} + + +
MonthEarnedSpendBalance
{{ month.name }}{{ month.earned | round(method="common", precision=2) }}{{ month.spent | round(method="common", precision=2) }}{{ balance | round(method="common", precision=2) }}{{ balance | round(method="common", precision=2) }}
{{ balance_sum| round(method="common", precision=2) }}{{ balance_sum | round(method="common", precision=2) }}
+
+
+
+ + + + + + -- cgit v1.2.3-70-g09d2