Move charge actions to ChargeController, implemented charge delete
This commit is contained in:
@@ -1275,7 +1275,7 @@ class Service extends Model implements IDs
|
||||
if ((($future == TRUE) OR (($future == FALSE) AND ($this->invoice_to >= $billdate)))
|
||||
AND ! $this->invoice_items->filter(function($item) { return $item->module_id == 30 AND ! $item->exists; })->count())
|
||||
{
|
||||
foreach ($this->charges->filter(function($item) { return ! $item->processed; }) as $oo) {
|
||||
foreach ($this->charges->filter(function($item) { return $item->unprocessed; }) as $oo) {
|
||||
$o = new InvoiceItem;
|
||||
$o->active = TRUE;
|
||||
$o->service_id = $oo->service_id;
|
||||
|
Reference in New Issue
Block a user