Skip to content

Commit

Permalink
fixed report console code..
Browse files Browse the repository at this point in the history
  • Loading branch information
cuneytsenturk committed Jun 15, 2021
1 parent f9e6edc commit c005e21
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions app/Console/Commands/ReportReminder.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
use App\Models\Common\Company;
use App\Models\Common\Report;
use App\Utilities\Reports as Utility;
use App\Utilities\Overrider;
use Date;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Cache;

Expand Down Expand Up @@ -45,7 +43,7 @@ public function handle()
continue;
}

$this->info('Sending invoice reminders for ' . $company->name . ' company.');
$this->info('Calculate report reminders for ' . $company->name . ' company.');

// Set company
$company->makeCurrent();
Expand All @@ -61,10 +59,6 @@ protected function remind()
$reports = Report::orderBy('name')->get();

foreach ($reports as $report) {
if (!Utility::canShow($report->class)) {
continue;
}

$class = Utility::getClassInstance($report, false);

if (empty($class)) {
Expand Down

0 comments on commit c005e21

Please sign in to comment.