Implement PLESK, SSL Services

This commit is contained in:
Deon George
2011-12-17 10:31:35 +11:00
parent cb18209369
commit c8fd44f844
29 changed files with 1038 additions and 438 deletions

View File

@@ -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();
}
/**