Fix Service::next_invoice_items() for invoices that should not be generated, but have additional charges
This commit is contained in:
parent
10c8e43f7c
commit
6a3b8692e1
@ -854,7 +854,7 @@ class Service extends Model
|
||||
}
|
||||
|
||||
// Add additional charges
|
||||
if (($future = TRUE OR ($future == FALSE AND ($this->invoice_to < Carbon::now()->addDays(30))))
|
||||
if (($future == TRUE OR ($future == FALSE AND ($this->invoice_to < Carbon::now()->addDays(30))))
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user