Internal overhaul of Cart/Checkout and other minor fixes

This commit is contained in:
Deon George
2013-12-02 15:16:28 +11:00
parent f8a5b153cf
commit 06b87c5135
26 changed files with 256 additions and 228 deletions

View File

@@ -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())

View File

@@ -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)) {

View File

@@ -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();
}