discount name in templates
This commit is contained in:
		
					parent
					
						
							
								2ff8c25034
							
						
					
				
			
			
				commit
				
					
						eeed9b2e72
					
				
			
		
					 5 changed files with 15 additions and 11 deletions
				
			
		|  | @ -123,5 +123,8 @@ def get_vm_price_with_vat(cpu, memory, ssd_size, hdd_size=0, | |||
|     cents = decimal.Decimal('.01') | ||||
|     price = price.quantize(cents, decimal.ROUND_HALF_UP) | ||||
|     vat = vat.quantize(cents, decimal.ROUND_HALF_UP) | ||||
|     discount = pricing.discount_amount | ||||
|     return float(price), float(vat), float(vat_percent), float(discount) | ||||
|     discount = { | ||||
|         'name': pricing.discount_name, | ||||
|         'amount': float(pricing.discount_amount), | ||||
|     } | ||||
|     return float(price), float(vat), float(vat_percent), discount | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue