From 5ceaaf7c901932ca80b2f9b3f43985b597019e4b Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 9 Aug 2020 14:52:42 +0200 Subject: [PATCH] bill cleanup, note next step --- uncloud_pay/models.py | 1 + uncloud_pay/templates/bill.html.j2 | 16 ++++++---------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/uncloud_pay/models.py b/uncloud_pay/models.py index d1c03e7..6169d4f 100644 --- a/uncloud_pay/models.py +++ b/uncloud_pay/models.py @@ -670,6 +670,7 @@ class Product(UncloudModel): if not when_to_start: when_to_start = timezone.now() + # NEXT: find the latest order, use that one... # Update order = create new order if self.order: previous_order = self.order diff --git a/uncloud_pay/templates/bill.html.j2 b/uncloud_pay/templates/bill.html.j2 index 5baa7ca..6fdfca8 100644 --- a/uncloud_pay/templates/bill.html.j2 +++ b/uncloud_pay/templates/bill.html.j2 @@ -672,16 +672,12 @@ oAsAAAAAAACGQNAFAAAAAAAAQyDoAgAAAAAAgCEQdAEAAAAAAMAQCLoAAAAAAABgCP83AL6WQ1Y7
- {% if bill.billing_address.organization != "" %} - ORG{{ bill.billing_address.organization }} -
{{ bill.billing_address }} - {% else %} - {{ bill.billing_address.name }} - {% endif %} -
{{ bill.billing_address.street }} -
{{ bill.billing_address.postal_code }} {{ bill.billing_address.city }} -
{{ bill.billing_address.country }} -
+ {{ bill.billing_address.organization }}
+ {{ bill.billing_address.name }}
+ {{ bill.owner.email }}
+ {{ bill.billing_address.street }}
+ {{ bill.billing_address.country }} {{ bill.billing_address.postal_code }} {{ bill.billing_address.city }}
+