Subtract deposit amounts from displayed balances
[bpt/portal.git] / portal.mlt
index d03698f..03d8dbd 100644 (file)
@@ -1,8 +1,9 @@
 <% val you = Init.getUser();
 val bal = Balance.lookupBalance (#bal you);
+val deposit = Balance.depositAmount (#id bal);
 @header [] %>
 
-<h3><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=payment@hcoop.net&item_name=Member+payment+for+<% #name you %>">Add to your balance with PayPal</a></h3>
+<% @payment [] %>
 
 <h3><a href="money">Your recent account activity</a></h3>
 
@@ -12,7 +13,8 @@ val bal = Balance.lookupBalance (#bal you);
 <tr> <td><% #d trn %></td> <td><a href="money?trn=<% #id trn %>"><% Web.html (#descr trn) %></a></td> <td><% amount %>/<% #amount trn %></td> </tr>
 <% end %>
 </table>
-<b>Balance: $<% #amount bal %></b>
+<b>Balance: $<% Util.sub (#amount bal, deposit) %></b><br>
+<b>Deposit: $<% deposit %></b> (3 months of dues at your current <a href="pledge">pledge level</a>)
 
 <% val polls = Poll.listCurrentPolls ();
 switch polls of
@@ -40,6 +42,6 @@ switch issues of
 end %>
 <br>
 <% end
-end %>
+end;
 
-<% @footer [] %>
\ No newline at end of file
+@footer [] %>