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.
 
 
 

77 lines
1.7 KiB

<!doctype html>
<html>
<head>
<title>Print Revenue Report</title>
<style>
body { font-family: Arial, sans-serif; margin: 24px; }
.top-links a { margin-right: 16px; }
table {
border-collapse: collapse;
width: 100%;
max-width: 700px;
margin-top: 20px;
}
th, td {
border: 1px solid #ccc;
padding: 10px;
text-align: left;
}
@media print {
.top-links, footer { display: none !important; }
body { margin: 0; }
}
</style>
</head>
<body>
<div class="top-links">
<a href="/reports/revenue">Back to Revenue Report</a>
<a href="#" onclick="window.print(); return false;">Print This Page</a>
</div>
<h1>Revenue Report</h1>
<p>
Frequency: <strong>{{ report.frequency }}</strong><br>
Period: <strong>{{ report.period_label }}</strong><br>
Start (UTC): {{ report.period_start }}<br>
End (UTC): {{ report.period_end }}
</p>
<table>
<tr>
<th>Metric</th>
<th>Value</th>
</tr>
<tr>
<td>Collected (CAD)</td>
<td>{{ report.collected_cad|money('CAD') }} CAD</td>
</tr>
<tr>
<td>Invoices Issued</td>
<td>{{ report.invoice_count }}</td>
</tr>
<tr>
<td>Invoiced Total</td>
<td>{{ report.invoiced_total|money('CAD') }} CAD</td>
</tr>
<tr>
<td>Outstanding Invoices</td>
<td>{{ report.outstanding_count }}</td>
</tr>
<tr>
<td>Outstanding Balance</td>
<td>{{ report.outstanding_balance|money('CAD') }} CAD</td>
</tr>
<tr>
<td>Overdue Invoices</td>
<td>{{ report.overdue_count }}</td>
</tr>
<tr>
<td>Overdue Balance</td>
<td>{{ report.overdue_balance|money('CAD') }} CAD</td>
</tr>
</table>
{% include "footer.html" %}
</body>
</html>