]> asedeno.scripts.mit.edu Git - bluechips.git/blobdiff - bluechips/templates/status/index.mako
Display all totals with currency formatting
[bluechips.git] / bluechips / templates / status / index.mako
index 777d09f33a608c0d5d07d2bf4ab5aa48b053a5c4..9291b693069180c164d41c7343ed53b275338c93 100644 (file)
 </table>
 % endif
 
+<h2>Totals</h2>
+
+<table>
+    <tr>
+        <td>Total</td>
+        <td>$${h.round_currency(c.total)}</td>
+    </tr>
+    <tr>
+        <td>Past year</td>
+        <td>$${h.round_currency(c.year_total)}</td>
+    </tr>
+    <tr>
+        <td>Year to date</td>
+        <td>$${h.round_currency(c.this_year_total)}</td>
+    </tr>
+    <tr>
+        <td>Month to date</td>
+        <td>$${h.round_currency(c.this_month_total)}</td>
+    </tr>
+    <tr>
+        <td>Last month</td>
+        <td>$${h.round_currency(c.last_month_total)}</td>
+    </tr>
+</table>
+
 <h2>Add a new transaction</h2>
 
 <ul>