Allow deleting invoices, if there are no payments yet

This commit is contained in:
David Taylor
2016-06-15 23:18:46 +01:00
parent e1578eb0d4
commit 67624eea6f
4 changed files with 61 additions and 0 deletions

View File

@@ -11,6 +11,10 @@
<div class="col-sm-4 text-right">
<div class="btn-group btn-page">
<a href="{% url 'invoice_delete' object.pk %}" class="btn btn-default" title="Void Invoice">
<span class="glyphicon glyphicon-remove"></span> <span
class="hidden-xs">Delete</span>
</a>
<a href="{% url 'invoice_void' object.pk %}" class="btn btn-default" title="Void Invoice">
<span class="glyphicon glyphicon-ban-circle"></span> <span
class="hidden-xs">Void</span>