From 0b41cd1d38eaa1b58035d2f2eb7647f4a02b744e Mon Sep 17 00:00:00 2001 From: Albert Santoni Date: Mon, 7 Jul 2014 15:20:41 -0400 Subject: [PATCH] Validate VAT every time the Account Plans page loads --- airtime_mvc/application/views/scripts/billing/upgrade.phtml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/airtime_mvc/application/views/scripts/billing/upgrade.phtml b/airtime_mvc/application/views/scripts/billing/upgrade.phtml index 6c8345ece..c6fa1dd43 100644 --- a/airtime_mvc/application/views/scripts/billing/upgrade.phtml +++ b/airtime_mvc/application/views/scripts/billing/upgrade.phtml @@ -156,6 +156,10 @@ $(document).ready(function() { }, 1500); //Wait 1.5 seconds before validating the VAT number }); + //We don't assume the VAT number we have in the database is valid. + //Let's force it to be rechecked and the total to be recalculated when the page loads. + validateVATNumber(); + $("#hobbyist_grid_price").text("$" + products[0].pricing["USD"]["monthly"] + " / month"); $("#starter_grid_price").text("$" + products[1].pricing["USD"]["monthly"] + " / month"); $("#plus_grid_price").text("$" + products[2].pricing["USD"]["monthly"] + " / month");