diff --git a/application/classes/Controller/Reseller/Account.php b/application/classes/Controller/Reseller/Account.php index 07a2638e..bf5270d8 100644 --- a/application/classes/Controller/Reseller/Account.php +++ b/application/classes/Controller/Reseller/Account.php @@ -125,6 +125,22 @@ class Controller_Reseller_Account extends Controller_Account { ->title_icon('icon-info-sign') ->span(6) ->body($i->render('html','body',array('noid'=>TRUE))); + + Block::factory() + ->title(sprintf('InActive Services for Account: %s',$ao->accnum())) + ->title_icon('icon-info-sign') + ->span(6) + ->body(Table::factory() + ->data($ao->service->where('status','!=',1)->or_where('status','IS',null)->find_all()) + ->columns(array( + 'id'=>'ID', + 'service_name()'=>'Service', + 'date_end'=>'Date', + )) + ->prepend(array( + 'id'=>array('url'=>URL::link('user','service/view/')), + )) + ); } } ?> diff --git a/modules/service/classes/Model/Service.php b/modules/service/classes/Model/Service.php index 96a42d29..533ebc3c 100644 --- a/modules/service/classes/Model/Service.php +++ b/modules/service/classes/Model/Service.php @@ -46,6 +46,12 @@ class Model_Service extends ORM_OSB { * Filters used to format the display of values into friendlier values */ protected $_display_filters = array( + 'date_start'=>array( + array('Config::date',array(':value')), + ), + 'date_end'=>array( + array('Config::date',array(':value')), + ), 'date_last_invoice'=>array( array('Config::date',array(':value')), ),