mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 05:34:30 -04:00
Merge delayed billing fix
This commit is contained in:
parent
7ffab74f1c
commit
7bf824f2fe
@ -150,13 +150,6 @@ class SendRecurringInvoices extends Command
|
|||||||
|
|
||||||
if ($invoice->getAutoBillEnabled() && $invoice->client->autoBillLater()) {
|
if ($invoice->getAutoBillEnabled() && $invoice->client->autoBillLater()) {
|
||||||
$this->info('Processing Autobill-delayed Invoice: ' . $invoice->id);
|
$this->info('Processing Autobill-delayed Invoice: ' . $invoice->id);
|
||||||
|
|
||||||
// TODO don't skip
|
|
||||||
if ($invoice->user->trashed()) {
|
|
||||||
$this->info('Archived user: skipping');
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
Auth::loginUsingId($invoice->activeUser()->id);
|
Auth::loginUsingId($invoice->activeUser()->id);
|
||||||
$this->paymentService->autoBillInvoice($invoice);
|
$this->paymentService->autoBillInvoice($invoice);
|
||||||
Auth::logout();
|
Auth::logout();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user