Show externally billed domains

This commit is contained in:
Deon George
2014-01-24 00:20:48 +11:00
parent ec88eb6926
commit ae98efa84e
8 changed files with 51 additions and 32 deletions

View File

@@ -52,6 +52,9 @@ class Model_Service extends ORM_OSB {
'date_next_invoice'=>array(
array('Config::date',array(':value')),
),
'external_billing'=>array(
array('StaticList_YesNo::get',array(':value',TRUE)),
),
'price_override'=>array(
array('Currency::display',array(':value')),
),

View File

@@ -38,7 +38,7 @@ abstract class Model_Service_Plugin extends ORM_OSB {
*/
protected function manage() {
// Dont show the manage button for expired or inactive services
if (! $this->service->status OR $this->service->expiring())
if (! $this->service->status OR $this->service->expiring() OR $this->service->external_billing)
return FALSE;
static $x = '';