Skip to content


Subversion checkout URL

You can clone with
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

49 lines (46 sloc) 1.567 kb
<h1>Biodiesel Un-paid Transactions</h1>
[% IF txns.size %]
[% IF !params.printable %]<p><a href="/unpaid?printable=1">Printable version of this page.</a></p>[% END %]
<p>Biodiesel transactions that are currently unpaid as of [% now %]:</p>
<p><strong>Grand Total Un-paid: $[% grand_total %]</strong></p>
<form action="/unpaid/mark-as-paid" method="POST">
<table class="common-table zebra-striped">
[% FOREACH member_txns IN txns %]
[% SET total = 0 %]
[% FOREACH txn IN member_txns %]
<tr class="unpaid_txn">
<td align="right"><a href="/members/[% txn.member_id %]">[% txn.member_id %]</a></td>
<td>[% txn.pretty_date %]</td>
<td>$[% txn.price %]</td>
<td><input type="checkbox" name="txns" value="[% txn.txn_id %]" /></td>
<td><input type="text" name="notes-[% txn.txn_id %]" value="[% txn.payment_notes %]" /></td>
[% SET total = total + txn.price %]
[% END %]
<tr class="unpaid_total">
<td><strong>$[% total %]</strong></td>
[% END %]
<div class="actions">
Send an email receipt? <input type="checkbox" name="send_receipt" value="1" />
<input class="btn primary" type="submit" value="Mark these transactions as paid" />
[% ELSE %]
<p>There are no-unpaid transactions at this time.</p>
[% END %]
Jump to Line
Something went wrong with that request. Please try again.