|
@@ -20,7 +20,7 @@
|
|
<td>{{ invoice.date }}</td>
|
|
<td>{{ invoice.date }}</td>
|
|
<td>{{ invoice.amount }}</td>
|
|
<td>{{ invoice.amount }}</td>
|
|
<td{% if invoice.amount_remaining_to_pay > 0 %} class="unpaid"{% endif %}>{{ invoice.amount_remaining_to_pay }}</td>
|
|
<td{% if invoice.amount_remaining_to_pay > 0 %} class="unpaid"{% endif %}>{{ invoice.amount_remaining_to_pay }}</td>
|
|
- <td><a href="{% url 'billing:invoice_pdf' id=invoice.number %}"><i class="fa fa-file-pdf-o"></i> PDF</a></td>
|
|
|
|
|
|
+ <td>{% if invoice.is_pdf_exists %}<a href="{% url 'billing:invoice_pdf' id=invoice.number %}"><i class="fa fa-file-pdf-o"></i> PDF</a>{% endif %}</td>
|
|
</tr>
|
|
</tr>
|
|
{% endfor %}
|
|
{% endfor %}
|
|
</tbody>
|
|
</tbody>
|