Style the invoice detail page for multiline items
This commit is contained in:
		
					parent
					
						
							
								2ae0c8629b
							
						
					
				
			
			
				commit
				
					
						a1a85e6c18
					
				
			
		
					 1 changed files with 4 additions and 3 deletions
				
			
		|  | @ -91,11 +91,12 @@ | ||||||
|             {% if vm %} |             {% if vm %} | ||||||
|                 {% if line_items %} |                 {% if line_items %} | ||||||
|                     <table> |                     <table> | ||||||
|                         <tr><th>Product</th><th>Period</th><th>Quantity</th><th>Unit Price</th><th>Total</th></tr> |                         <tr><th style="width: 35%">Product</th><th style="width: 20%">Period</th><th style="text-align: center; width: 10%">Qty</th><th align="center"  style="width: 10%; text-align: center;">Unit Price</th><th  style="width: 10%; text-align: right;">Total</th></tr> | ||||||
|                         {% for line_item in line_items %} |                         {% for line_item in line_items %} | ||||||
|                         <tr><td>{% if line_item.description|len > 0 %}{{line_item.description}}{% else %}{{line_item.stripe_plan.stripe_plan_id}}{% endif %}</td><td>{{ line_item.period_start | date:'Y-m-d' }} — {{ line_item.period_end | date:'Y-m-d' }}</td><td>{{line_item.quantity}}</td><td>{{line_item.unit_amount}}</td><td>{{line_item.amount}}</td></tr> |                         <tr class="border_bottom"><td>{% if line_item.description|length > 0 %}{{line_item.description}}{% else %}{{line_item.get_item_detail_str|safe}}{% endif %}</td><td>{{ line_item.period_start | date:'Y-m-d' }} — {{ line_item.period_end | date:'Y-m-d' }}</td><td align="center">{{line_item.quantity}}</td><td align="center">{{line_item.unit_amount_in_chf}}</td><td align="right">{{line_item.amount_in_chf}}</td></tr> | ||||||
|  | 
 | ||||||
|                         {% endfor %} |                         {% endfor %} | ||||||
|                         <tr><td colspan="4">Grand Total</td><td>{{total_in_chf}}</td></tr> |                         <tr class="grand-total-padding"><td colspan="4">Grand Total</td><td align="right">{{total_in_chf}}</td></tr> | ||||||
|                     </table> |                     </table> | ||||||
|                 {% else %} |                 {% else %} | ||||||
|                     <p> |                     <p> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue