Added Revenue information
This commit is contained in:
@@ -51,6 +51,10 @@ class Model_Product extends ORM_OSB {
|
||||
return $this->avail_category;
|
||||
}
|
||||
|
||||
public function cost($annual=FALSE) {
|
||||
return $this->plugin() ? $this->plugin()->cost($annual) : 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the translated description for a category.
|
||||
*/
|
||||
@@ -134,6 +138,10 @@ class Model_Product extends ORM_OSB {
|
||||
return $active ? $this->service->where_active() : $this->service;
|
||||
}
|
||||
|
||||
public function supplier() {
|
||||
return $this->plugin() ? $this->plugin()->supplier() : 'other';
|
||||
}
|
||||
|
||||
private function translate() {
|
||||
return $this->product_translate->where('language_id','=',Config::language())->find();
|
||||
}
|
||||
|
Reference in New Issue
Block a user