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.
 
 
 

94 lines
2.1 KiB

<!-- OTB_AGING_CONTRAST_FIX_START -->
<style>
table thead th,
table tr:first-child th {
color: #10203f !important;
background: #e9eef7 !important;
font-weight: 700 !important;
}
table tbody td {
color: #f5f7fb !important;
}
table tbody td a {
color: #ffffff !important;
}
table tbody tr:last-child td,
table tfoot td {
color: #10203f !important;
background: #e9eef7 !important;
font-weight: 700 !important;
}
</style>
<!-- OTB_AGING_CONTRAST_FIX_END -->
<!doctype html>
<html>
<head>
<title>Accounts Receivable Aging</title>
<style>
table {
border-collapse: collapse;
width: 100%;
max-width: 1200px;
}
th, td {
border: 1px solid #999;
padding: 8px;
text-align: left;
}
th {
background: #f2f2f2;
}
.money {
text-align: right;
white-space: nowrap;
}
.total-row {
font-weight: bold;
background: #f8f8f8;
}
</style>
<link rel="icon" type="image/png" href="/static/favicon.png">
</head>
<body>
<h1>Accounts Receivable Aging</h1>
<p><a href="/">Home</a></p>
<table>
<tr>
<th>Client</th>
<th>Current</th>
<th>1–30</th>
<th>31–60</th>
<th>61–90</th>
<th>90+</th>
<th>Total</th>
</tr>
{% for row in aging_rows %}
<tr>
<td>{{ row.client }}</td>
<td class="money">{{ row.current|money('CAD') }}</td>
<td class="money">{{ row.d30|money('CAD') }}</td>
<td class="money">{{ row.d60|money('CAD') }}</td>
<td class="money">{{ row.d90|money('CAD') }}</td>
<td class="money">{{ row.d90p|money('CAD') }}</td>
<td class="money"><strong>{{ row.total|money('CAD') }}</strong></td>
</tr>
{% endfor %}
<tr class="total-row">
<td>TOTAL</td>
<td class="money">{{ totals.current|money('CAD') }}</td>
<td class="money">{{ totals.d30|money('CAD') }}</td>
<td class="money">{{ totals.d60|money('CAD') }}</td>
<td class="money">{{ totals.d90|money('CAD') }}</td>
<td class="money">{{ totals.d90p|money('CAD') }}</td>
<td class="money">{{ totals.total|money('CAD') }}</td>
</tr>
</table>
{% include "footer.html" %}
</body>
</html>