Minor work on ADSL/Domain/Hosting and other minor fixes
This commit is contained in:
@@ -163,5 +163,19 @@ class Model_Service extends ORMOSB {
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* List services that need to be billed.
|
||||
*/
|
||||
public function list_invoicesoon() {
|
||||
$result = array();
|
||||
|
||||
foreach ($this->list_active() as $so)
|
||||
// @todo This should be configurable
|
||||
if (! $so->suspend_billing AND $so->date_next_invoice < time()+35*86400)
|
||||
array_push($result,$so);
|
||||
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user