mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-10-30 07:19:56 +01:00 
			
		
		
		
	Display 2 decimals in invoices
This commit is contained in:
		| @@ -141,9 +141,8 @@ class InvoiceRenderView(LoginRequiredMixin, View): | |||||||
|         invoice = Invoice.objects.filter(PermissionBackend.filter_queryset(request.user, Invoice, "view")).get(pk=pk) |         invoice = Invoice.objects.filter(PermissionBackend.filter_queryset(request.user, Invoice, "view")).get(pk=pk) | ||||||
|         products = Product.objects.filter(invoice=invoice).all() |         products = Product.objects.filter(invoice=invoice).all() | ||||||
|  |  | ||||||
|         # Informations of the BDE. Should be updated when the school will move. |  | ||||||
|         invoice.place = "Gif-sur-Yvette" |         invoice.place = "Gif-sur-Yvette" | ||||||
|         invoice.my_name = "BDE ENS Paris-Saclay" |         invoice.my_name = "BDE ENS Cachan" | ||||||
|         invoice.my_address_street = "4 avenue des Sciences" |         invoice.my_address_street = "4 avenue des Sciences" | ||||||
|         invoice.my_city = "91190 Gif-sur-Yvette" |         invoice.my_city = "91190 Gif-sur-Yvette" | ||||||
|         invoice.bank_code = 30003 |         invoice.bank_code = 30003 | ||||||
|   | |||||||
| @@ -48,7 +48,7 @@ | |||||||
|  |  | ||||||
| \newcommand	{\ListeProduits}{ | \newcommand	{\ListeProduits}{ | ||||||
|     {% for product in products %} |     {% for product in products %} | ||||||
|         {{ product.designation|safe|escape_tex }}    &    {{ product.amount_euros|safe|escape_tex }}    &    {{ product.quantity|safe|escape_tex }}    &    {{ product.total_euros|safe|escape_tex }}   \cr |         {{ product.designation|safe|escape_tex }}    &    {{ product.amount_euros|safe|escape_tex|floatformat:2 }}    &    {{ product.quantity|safe|escape_tex|floatformat:2 }}    &    {{ product.total_euros|safe|escape_tex|floatformat:2 }}   \cr | ||||||
|     {% endfor %} |     {% endfor %} | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user