diff --git a/app/Console/Commands/MiningTaxes/MiningTaxesInvoices.php b/app/Console/Commands/MiningTaxes/MiningTaxesInvoices.php index ccdd84c36..10a6c416a 100644 --- a/app/Console/Commands/MiningTaxes/MiningTaxesInvoices.php +++ b/app/Console/Commands/MiningTaxes/MiningTaxesInvoices.php @@ -60,11 +60,11 @@ class MiningTaxesInvoices extends Command $task->SetStartStatus(); //Get the characters for each non-invoiced ledger entry - $charIds = Ledger::distinct('character_id') + $charIds = Ledger::where([ + 'invoiced' => 'No', + ])->distinct('character_id') ->pluck('character_id'); - dd($charIds); - if($charIds == null) { //Set the task status as done and Log the issue $task->SetStopStatus();