35 lines
658 B
HTML
35 lines
658 B
HTML
{% extends "base.html" %}
|
|
{% block content %}
|
|
|
|
<h2>Invoices</h2>
|
|
|
|
<table border="1" cellpadding="6">
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>Client</th>
|
|
<th>Status</th>
|
|
<th>Total</th>
|
|
<th>Paid</th>
|
|
<th></th>
|
|
</tr>
|
|
|
|
{% for inv in invoices %}
|
|
<tr>
|
|
<td>{{ inv.id }}</td>
|
|
<td>{{ inv.client.name if inv.client else "" }}</td>
|
|
<td>{{ inv.status }}</td>
|
|
<td>${{ inv.total }}</td>
|
|
<td>${{ inv.amount_paid }}</td>
|
|
<td>
|
|
<a href="{{ url_for('invoices.view_invoice', invoice_id=inv.id) }}">View</a>
|
|
</td>
|
|
</tr>
|
|
{% else %}
|
|
<tr>
|
|
<td colspan="6">No invoices yet.</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
|
|
{% endblock %}
|