Round price_with_vat
This commit is contained in:
		
					parent
					
						
							
								3d51e4fe32
							
						
					
				
			
			
				commit
				
					
						3141dc2793
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -681,7 +681,7 @@ class OrderConfirmationView(DetailView, FormView):
 | 
			
		|||
                                            2)
 | 
			
		||||
            vm_specs["vat_country"] = user_vat_country
 | 
			
		||||
            vm_specs["discount"] = discount
 | 
			
		||||
            vm_specs["price_with_vat"] = price + vm_specs["vat"]
 | 
			
		||||
            vm_specs["price_with_vat"] = round(price + vm_specs["vat"], 2)
 | 
			
		||||
            vm_specs["price_after_discount"] = round(price - discount['amount'], 2)
 | 
			
		||||
            vm_specs["price_after_discount_with_vat"] = round((price - discount['amount_with_vat']) + vm_specs["vat"], 2)
 | 
			
		||||
            request.session['specs'] = vm_specs
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue