Implement PLESK, SSL Services
This commit is contained in:
@@ -131,14 +131,14 @@ class Model_Product extends ORMOSB {
|
||||
* List the number of services using this product
|
||||
*/
|
||||
public function services_count() {
|
||||
return $this->service->find_all()->count();
|
||||
return $this->service->where('active','=',1)->find_all()->count();
|
||||
}
|
||||
|
||||
/**
|
||||
* List the number of invoices using this product
|
||||
*/
|
||||
public function invoices_count() {
|
||||
return $this->invoice->find_all()->count();
|
||||
return $this->invoice->where('status','=',1)->find_all()->count();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user