invoice stuff
This commit is contained in:
@@ -60,15 +60,15 @@ class MiningTaxesInvoices extends Command
|
|||||||
$task->SetStartStatus();
|
$task->SetStartStatus();
|
||||||
|
|
||||||
//Get the characters for each non-invoiced ledger entry
|
//Get the characters for each non-invoiced ledger entry
|
||||||
$charIds = Ledger::where([
|
$charIds = Ledger::distinct('character_id')
|
||||||
'invoiced' => 'Yes',
|
|
||||||
])->distinct('character_id')
|
|
||||||
->pluck('character_id');
|
->pluck('character_id');
|
||||||
|
|
||||||
dd($charIds);
|
dd($charIds);
|
||||||
|
|
||||||
if($charIds == null) {
|
if($charIds == null) {
|
||||||
|
//Set the task status as done and Log the issue
|
||||||
|
$task->SetStopStatus();
|
||||||
|
Log::warning("No characters found to send invoices to in MiningTaxesInvoices Command.");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user