Skip to content

Commit d217b09

Browse files
committed
added description to invoice detail
1 parent 2a3152c commit d217b09

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

microtools/microinvoicer/templates/invoice_detail.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818
</div>
1919
</div>
2020
<h4 align="center">Invoice {{ object.series_number }}</h4><br>
21-
<p class="right-align">issued on <strong>{{ object.issue_date|naturalday }}</strong></p>
21+
<div class="row">
22+
<div class="col s6">{{ object.description }}</div>
23+
<div class="col s6 right-align">issued on <strong>{{ object.issue_date|naturalday }}</strong></div>
24+
</div>
2225
<div class="card">
2326
<div class="card-content">
2427
<h5 align="center">
@@ -45,4 +48,4 @@ <h5 align="center">
4548
<div class="col center-align">
4649
</div>
4750
</div>
48-
{% endblock %}
51+
{% endblock %}

microtools/microinvoicer/views.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,6 @@ class TimeInvoiceDetailView(LoginRequiredMixin, DetailView):
269269
model = models.TimeInvoice
270270
template_name = "invoice_detail.html"
271271

272-
def get_context_data(self, **kwargs):
273-
return super().get_context_data(**kwargs)
274-
275272

276273
class TimeInvoicePrintView(LoginRequiredMixin, DetailView):
277274
"""Download invoice as PDF file"""

0 commit comments

Comments
 (0)