bill cleanup, note next step

This commit is contained in:
Nico Schottelius 2020-08-09 14:52:42 +02:00
parent 2b29e300dd
commit 5ceaaf7c90
2 changed files with 7 additions and 10 deletions

View File

@ -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

View File

@ -672,16 +672,12 @@ oAsAAAAAAACGQNAFAAAAAAAAQyDoAgAAAAAAgCEQdAEAAAAAAMAQCLoAAAAAAABgCP83AL6WQ1Y7
<br>
</div>
<div class="d1">
{% if bill.billing_address.organization != "" %}
<b>ORG{{ bill.billing_address.organization }}</b>
<br>{{ bill.billing_address }} <bill.owner.email>
{% else %}
<b>{{ bill.billing_address.name }} <bill.owner.email></b>
{% endif %}
<br>{{ bill.billing_address.street }}
<br>{{ bill.billing_address.postal_code }} {{ bill.billing_address.city }}
<br>{{ bill.billing_address.country }}
<br>
<b>{{ bill.billing_address.organization }}</b><br/>
<b>{{ bill.billing_address.name }}</b><br/>
{{ bill.owner.email }}<br/>
{{ bill.billing_address.street }}<br/>
{{ bill.billing_address.country }} {{ bill.billing_address.postal_code }} {{ bill.billing_address.city }}<br/>
</div>
<div class="d4">
<div class="b1">