More ADSL updates and fixes from live site

This commit is contained in:
Deon George
2013-11-15 21:05:22 +11:00
parent c66f2f14c4
commit a711e70b60
9 changed files with 118 additions and 229 deletions

View File

@@ -746,11 +746,8 @@ class Model_Invoice extends ORM_OSB implements Cartable {
public function list_due($time=NULL,$authorised=TRUE) {
$result = array();
if (is_null($time))
$time = time();
foreach ($this->_list_due($authorised) as $io)
if ($io->due_date > $time)
if (is_null($time) OR $io->due_date > $time)
array_push($result,$io);
return $result;