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

Reduce logging for send-invoices command

This commit is contained in:
Hillel Coren 2017-06-06 10:58:49 +03:00
parent ae2f23da79
commit bdcaf6b3f1

View File

@ -84,12 +84,13 @@ class SendRecurringInvoices extends Command
foreach ($invoices as $recurInvoice) {
$shouldSendToday = $recurInvoice->shouldSendToday();
$this->info('Processing Invoice '.$recurInvoice->id.' - Should send '.($shouldSendToday ? 'YES' : 'NO'));
if (! $shouldSendToday) {
continue;
}
$this->info('Processing Invoice: '. $recurInvoice->id);
$account = $recurInvoice->account;
$account->loadLocalizationSettings($recurInvoice->client);
Auth::loginUsingId($recurInvoice->user_id);
@ -117,7 +118,7 @@ class SendRecurringInvoices extends Command
}
if ($invoice->getAutoBillEnabled() && $invoice->client->autoBillLater()) {
$this->info('Processing Autobill-delayed Invoice ' . $invoice->id);
$this->info('Processing Autobill-delayed Invoice: ' . $invoice->id);
Auth::loginUsingId($invoice->user_id);
$this->paymentService->autoBillInvoice($invoice);
Auth::logout();