From 7bf824f2fec67b7830f4d84a7c429214151c8942 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 21 Feb 2018 21:50:24 +0200 Subject: [PATCH] Merge delayed billing fix --- app/Console/Commands/SendRecurringInvoices.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/Console/Commands/SendRecurringInvoices.php b/app/Console/Commands/SendRecurringInvoices.php index 6c74b8a44ae1..533f14d3c0ae 100644 --- a/app/Console/Commands/SendRecurringInvoices.php +++ b/app/Console/Commands/SendRecurringInvoices.php @@ -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();