Work on invoices, products and other minor things
This commit is contained in:
@@ -110,6 +110,10 @@ class Model_Account extends Model_Auth_UserDefault {
|
||||
foreach ($this->invoices_due($date) as $io)
|
||||
$result += $io->due();
|
||||
|
||||
// @todo This shouldnt really be required
|
||||
if ($result < 0)
|
||||
$result = 0;
|
||||
|
||||
return $format ? Currency::display($result) : $result;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user