Fixes from live
This commit is contained in:
@@ -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()
|
||||
|
@@ -15,6 +15,7 @@ class Model_Service_Billing extends ORM_OSB {
|
||||
// Relationships
|
||||
protected $_has_one = array(
|
||||
'checkout'=>array('far_key'=>'checkout_id','foreign_key'=>'id'),
|
||||
'service'=>array('far_key'=>'service_id','foreign_key'=>'id'),
|
||||
);
|
||||
|
||||
protected $_display_filters = array(
|
||||
|
Reference in New Issue
Block a user