1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 12:12:48 +01:00

Merge delayed billing fix

This commit is contained in:
Hillel Coren 2018-02-21 21:50:24 +02:00
parent 7ffab74f1c
commit 7bf824f2fe

View File

@ -150,13 +150,6 @@ class SendRecurringInvoices extends Command
if ($invoice->getAutoBillEnabled() && $invoice->client->autoBillLater()) {
$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);
$this->paymentService->autoBillInvoice($invoice);
Auth::logout();