Fix account upgrade invoicing issue
* Don't generate upgrade orders if the plan and the billing cycle didn't change. WHMCS freaks out otherwise. * Clean up some deadcode in BillingUpgradeDowngrade.php * Squash an error in the invoice view if there's no invoices
This commit is contained in:
parent
20f55314b4
commit
0ab1eaa08c
2 changed files with 47 additions and 25 deletions
|
@ -6,13 +6,7 @@ class Application_Form_BillingUpgradeDowngrade extends Zend_Form
|
|||
$productPrices = array();
|
||||
$productTypes = array();
|
||||
list($productPrices, $productTypes) = BillingController::getProductPricesAndTypes();
|
||||
|
||||
//$currentPlanType = ucfirst(Application_Model_Preference::GetPlanLevel());
|
||||
$currentPlanType = "Hobbyist";
|
||||
if (($key = array_search($currentPlanType, $productTypes)) !== false) {
|
||||
//unset($productTypes[$key]);
|
||||
}
|
||||
|
||||
|
||||
$currentPlanProduct = BillingController::getClientCurrentAirtimeProduct();
|
||||
$currentPlanProductId = $currentPlanProduct["pid"];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue