Changed use of active to status
This commit is contained in:
@@ -510,15 +510,11 @@ class Model_Invoice extends ORMOSB {
|
||||
return $return;
|
||||
}
|
||||
|
||||
private function _list_active() {
|
||||
return ORM::factory('invoice')->where('status','=',1);
|
||||
}
|
||||
|
||||
private function _list_due() {
|
||||
static $result = array();
|
||||
|
||||
if (! $result)
|
||||
foreach ($this->_list_active()->find_all() as $io)
|
||||
foreach ($this->list_active() as $io)
|
||||
if ($io->due())
|
||||
array_push($result,$io);
|
||||
|
||||
|
Reference in New Issue
Block a user