From a1a85e6c188410a2b4ad6ab528024d937f66d79a Mon Sep 17 00:00:00 2001 From: PCoder Date: Sat, 20 Apr 2019 18:52:01 +0200 Subject: [PATCH] Style the invoice detail page for multiline items --- hosting/templates/hosting/invoice_detail.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hosting/templates/hosting/invoice_detail.html b/hosting/templates/hosting/invoice_detail.html index 359178b2..d1411db0 100644 --- a/hosting/templates/hosting/invoice_detail.html +++ b/hosting/templates/hosting/invoice_detail.html @@ -91,11 +91,12 @@ {% if vm %} {% if line_items %} - + {% for line_item in line_items %} - + + {% endfor %} - +
ProductPeriodQuantityUnit PriceTotal
ProductPeriodQtyUnit PriceTotal
{% if line_item.description|len > 0 %}{{line_item.description}}{% else %}{{line_item.stripe_plan.stripe_plan_id}}{% endif %}{{ line_item.period_start | date:'Y-m-d' }} — {{ line_item.period_end | date:'Y-m-d' }}{{line_item.quantity}}{{line_item.unit_amount}}{{line_item.amount}}
{% if line_item.description|length > 0 %}{{line_item.description}}{% else %}{{line_item.get_item_detail_str|safe}}{% endif %}{{ line_item.period_start | date:'Y-m-d' }} — {{ line_item.period_end | date:'Y-m-d' }}{{line_item.quantity}}{{line_item.unit_amount_in_chf}}{{line_item.amount_in_chf}}
Grand Total{{total_in_chf}}
Grand Total{{total_in_chf}}
{% else %}