From c5f72792d23a4f60a72db8e19c8fdc100066a4b9 Mon Sep 17 00:00:00 2001 From: PCoder Date: Sat, 13 Apr 2019 15:35:36 +0200 Subject: [PATCH] Show period of the first line item as the period of the invoice --- hosting/templates/hosting/invoices.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosting/templates/hosting/invoices.html b/hosting/templates/hosting/invoices.html index 8eb3d02c..f2486111 100644 --- a/hosting/templates/hosting/invoices.html +++ b/hosting/templates/hosting/invoices.html @@ -31,7 +31,7 @@ {{ invoice.order.vm_id }} {{ ips|get_value_from_dict:invoice.invoice_number|join:"
" }} {% with line_items|get_value_from_dict:invoice.invoice_number as line_items_to_show %} - {{ line_items_to_show.period_start | date:'Y-m-d' }} — {{ line_items_to_show.period_end | date:'Y-m-d' }} + {{ line_items_to_show.0.period_start | date:'Y-m-d' }} — {{ line_items_to_show.0.period_end | date:'Y-m-d' }} {% endwith %} {{ invoice.total_in_chf|floatformat:2|intcomma }}