Fixes from live

This commit is contained in:
Deon George
2014-05-20 21:49:52 +10:00
parent a329cc3179
commit cbd10347a5
12 changed files with 26 additions and 28 deletions

View File

@@ -81,10 +81,8 @@ class Controller_Reseller_Service extends Controller_Service {
foreach (ORM::factory('Checkout')->find_all() as $co) {
$svs = array();
foreach ($co->account->where('account.id','IN',$this->ao->RTM->customers($this->ao->RTM))->find_all() as $ao)
foreach ($ao->service->list_active() as $so)
if ($so->service_billing->checkout_id == $co->id)
array_push($svs,$so);
foreach ($co->service->where('service.account_id','IN',$this->ao->RTM->customers($this->ao->RTM))->find_all() as $so)
array_push($svs,$so);
if ($svs)
Block::factory()