billing frontend for mariadb. setup as otb_billing for outsidethebox.top accounting. also involved with outsidethedb
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

49 lines
1.0 KiB

<!doctype html>
<html>
<head>
<title>Client Credit Ledger</title>
<link rel="icon" type="image/png" href="/static/favicon.png">
</head>
<body>
<h1>Client Credit Ledger</h1>
<p><a href="/">Home</a></p>
<p><a href="/clients">Back to Clients</a></p>
<h3>{{ client.client_code }} - {{ client.company_name }}</h3>
<p><strong>Current Balance:</strong> {{ balance|money('CAD') }}</p>
<p><a href="/credits/add/{{ client.id }}">Add Credit</a></p>
<table border="1" cellpadding="6">
<tr>
<th>ID</th>
<th>Type</th>
<th>Amount</th>
<th>Currency</th>
<th>Reference Type</th>
<th>Reference ID</th>
<th>Notes</th>
<th>Created</th>
</tr>
{% for e in entries %}
<tr>
<td>{{ e.id }}</td>
<td>{{ e.entry_type }}</td>
<td>{{ e.amount|money(e.currency_code) }}</td>
<td>{{ e.currency_code }}</td>
<td>{{ e.reference_type }}</td>
<td>{{ e.reference_id }}</td>
<td>{{ e.notes }}</td>
<td>{{ e.created_at|localtime }}</td>
</tr>
{% endfor %}
</table>
{% include "footer.html" %}
</body>
</html>