Improved User Welcome
This commit is contained in:
@@ -620,6 +620,15 @@ class Model_Invoice extends ORM_OSB implements Cartable {
|
||||
return $result;
|
||||
}
|
||||
|
||||
public function list_due_total($format=FALSE,$time=NULL) {
|
||||
$result = 0;
|
||||
|
||||
foreach ($this->list_due($time) as $io)
|
||||
$result += $io->due();
|
||||
|
||||
return $format ? Currency::display($result) : Currency::round($result);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a list of invoices that need to be sent.
|
||||
* @todo This should be optimised a little to return only invoices to send, instead of looking for them.
|
||||
|
Reference in New Issue
Block a user