invoices.html: Replace all order instances by invoice
This commit is contained in:
		
					parent
					
						
							
								de3734bf20
							
						
					
				
			
			
				commit
				
					
						71832f8afc
					
				
			
		
					 1 changed files with 6 additions and 6 deletions
				
			
		|  | @ -18,20 +18,20 @@ | ||||||
|     <table class="table table-switch"> |     <table class="table table-switch"> | ||||||
|         <thead> |         <thead> | ||||||
|             <tr> |             <tr> | ||||||
|                 <th>{% trans "Order Nr." %}</th> |                 <th>{% trans "Invoice Nr." %}</th> | ||||||
|                 <th>{% trans "Date" %}</th> |                 <th>{% trans "Date" %}</th> | ||||||
|                 <th>{% trans "Amount" %}</th> |                 <th>{% trans "Amount" %}</th> | ||||||
|                 <th></th> |                 <th></th> | ||||||
|             </tr> |             </tr> | ||||||
|         </thead> |         </thead> | ||||||
|         <tbody> |         <tbody> | ||||||
|             {% for order in orders %} |             {% for invoice in invoices %} | ||||||
|                 <tr> |                 <tr> | ||||||
|                     <td class="xs-td-inline" data-header="{% trans 'Order Nr.' %}">{{ order.id }}</td> |                     <td class="xs-td-inline" data-header="{% trans 'Invoice Nr.' %}">{{ invoice.invoice_number }}</td> | ||||||
|                     <td class="xs-td-bighalf locale_date" data-header="{% trans 'Date' %}">{{ order.created_at | date:'Y-m-d h:i a' }}</td> |                     <td class="xs-td-bighalf locale_date" data-header="{% trans 'Date' %}">{{ invoice.paid_at | date:'Y-m-d h:i a' }}</td> | ||||||
|                     <td class="xs-td-smallhalf" data-header="{% trans 'Amount' %}">{{ order.price|floatformat:2|intcomma }}</td> |                     <td class="xs-td-smallhalf" data-header="{% trans 'Amount' %}">{{ invoice.total_in_chf|floatformat:2|intcomma }}</td> | ||||||
|                     <td class="text-right last-td"> |                     <td class="text-right last-td"> | ||||||
|                         <a class="btn btn-order-detail" href="{% url 'hosting:orders' order.pk %}">{% trans 'See Invoice' %}</a> |                         <a class="btn btn-order-detail" href="{% url 'hosting:invoices' invoice.pk %}">{% trans 'See Invoice' %}</a> | ||||||
|                     </td> |                     </td> | ||||||
|                 </tr> |                 </tr> | ||||||
|             {% endfor %} |             {% endfor %} | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue