added test + expenses + some changes

This commit is contained in:
gitea 2025-01-09 15:21:23 +00:00
parent 0c5948a253
commit 9b82e53c86

View File

@ -40,10 +40,7 @@
{% endif %}
{% if invoice.invoice_status == 'approved' %}
<a href="{% url 'payment_create' invoice.pk %}" class="btn btn-phoenix-primary"><span class="d-none d-sm-inline-block">{% trans 'Record Payment' %}</span></a>
{% endif %}
{% if invoice.get_amount_open == 0 %}
<a href="{% url 'paid_invoice_update' invoice.pk %}" class="btn btn-phoenix-primary"><span class="d-none d-sm-inline-block">{% trans 'Mark As Paid' %}</span></a>
{% endif %}
{% endif %}
<a href="{% url 'invoice_preview' invoice.pk %}" class="btn btn-phoenix-primary"><span class="d-none d-sm-inline-block">{% trans 'Preview' %}</span></a>
</div>
</div>