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);
|
||||
|
||||
|
@@ -204,7 +204,7 @@
|
||||
</tr>
|
||||
<!-- END Invoice Total -->
|
||||
<!-- Account Total Due -->
|
||||
<tr>
|
||||
<tr>
|
||||
<td class="head" colspan="2">Total Outstanding This Account:</td>
|
||||
<td class="bold-right" colspan="2"><?php echo $io->account->invoices_due_total(NULL,TRUE); ?></td>
|
||||
</tr>
|
||||
|
Reference in New Issue
Block a user