Don't use NumberFormatter because of PECL intl dependency
This commit is contained in:
parent
5df522f226
commit
d984ec9b43
|
@ -425,12 +425,16 @@ class ShowbuilderController extends Zend_Controller_Action
|
||||||
$client = $arr->client;
|
$client = $arr->client;
|
||||||
$stats = $arr->stats;
|
$stats = $arr->stats;
|
||||||
$currencyCode = $client->currency_code;
|
$currencyCode = $client->currency_code;
|
||||||
$incomeCents = NumberFormatter::parseCurrency($stats->income, $currencyCode);
|
//$incomeCents = NumberFormatter::parseCurrency($stats->income, $currencyCode);
|
||||||
|
|
||||||
$isTrial = true;
|
$isTrial = true;
|
||||||
if ($incomeCents > 0) {
|
if (strpos($stats->income, "0.00") === FALSE) {
|
||||||
$isTrial = false;
|
$isTrial = false;
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
|
if ($incomeCents > 0) {
|
||||||
|
$isTrial = false;
|
||||||
|
}*/
|
||||||
$plan = Application_Model_Preference::GetPlanLevel();
|
$plan = Application_Model_Preference::GetPlanLevel();
|
||||||
$country = $client->country;
|
$country = $client->country;
|
||||||
$postcode = $client->postcode;
|
$postcode = $client->postcode;
|
||||||
|
@ -456,7 +460,7 @@ class ShowbuilderController extends Zend_Controller_Action
|
||||||
'PlanType': '" . $plan . "',
|
'PlanType': '" . $plan . "',
|
||||||
'Trial': '" . $isTrial . "',
|
'Trial': '" . $isTrial . "',
|
||||||
'Country': '" . $country . "',
|
'Country': '" . $country . "',
|
||||||
'AccountDuration': '" . $accountDuration . "'
|
'AccountDuration': '" . strval($accountDuration) . "'
|
||||||
});";
|
});";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue