From 8929a26714130cbe84d3df057bb5a622ff9b147b Mon Sep 17 00:00:00 2001 From: PCoder Date: Wed, 17 Oct 2018 07:27:28 +0200 Subject: [PATCH] Round VAT percent to 2 decimal places --- utils/hosting_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/hosting_utils.py b/utils/hosting_utils.py index 8354f485..ec97a320 100644 --- a/utils/hosting_utils.py +++ b/utils/hosting_utils.py @@ -130,7 +130,7 @@ def get_vm_price_with_vat(cpu, memory, ssd_size, hdd_size=0, 'amount': round(float(pricing.discount_amount), 2) } return (round(float(price), 2), round(float(vat), 2), - round(float(vat_percent)), discount) + round(float(vat_percent), 2), discount) def ping_ok(host_ipv6):