Internal overhaul of Cart/Checkout and other minor fixes
This commit is contained in:
@@ -20,7 +20,7 @@ class Task_Adsl_Trafficalert extends Minion_Task {
|
||||
|
||||
// @todo Pick up services that are no longer active, but were inactive < 30 days ago.
|
||||
foreach (ORM::factory('Service')->list_byplugin('ADSL') as $so) {
|
||||
if ($params['verbose'])
|
||||
if (Minion_CLI::options('verbose'))
|
||||
echo $so->service_name()."\n";
|
||||
|
||||
if (! $data=$so->plugin()->traffic_report())
|
||||
|
@@ -20,7 +20,7 @@ class Task_Adsl_Trafficcharge extends Minion_Task {
|
||||
|
||||
// @todo Pick up services that are no longer active, but were inactive < 30 days ago.
|
||||
foreach (ORM::factory('Service')->list_byplugin('ADSL') as $so) {
|
||||
if ($params['verbose'])
|
||||
if (Minion_CLI::options('verbose'))
|
||||
echo $so->service_name()."\n";
|
||||
|
||||
if ($x=$so->plugin()->traffic_excess($date)) {
|
||||
|
@@ -22,8 +22,8 @@ class Task_Adsl_Trafficget extends Minion_Task {
|
||||
|
||||
protected function _execute(array $params) {
|
||||
foreach ($this->_traffic_suppliers(TRUE) as $aso) {
|
||||
if ($params['verbose'])
|
||||
echo $aso->name."\n";
|
||||
if (Minion_CLI::options('verbose'))
|
||||
printf("%s: %s\n",$aso->id,$aso->name);
|
||||
|
||||
Service_Traffic_Adsl::instance($aso->name)->update_traffic();
|
||||
}
|
||||
|
Reference in New Issue
Block a user