updated finance helper along with some other helper functions to prepare for jump bridge statics and other statistics
This commit is contained in:
@@ -63,22 +63,11 @@ class CorpJournal extends Command
|
||||
//Get the corps with structures logged in the database
|
||||
$corps = DB::table('CorpStructures')->select('corporation_id')->groupBy('corporation_id')->get();
|
||||
foreach($corps as $corp) {
|
||||
$this->line('Retrieving Corporation Journals for ' . $corp->corporation_id);
|
||||
$charId = DB::table('CorpStructures')->select('character_id')->where(['corporation_id' => $corp->corporation_id])->first();
|
||||
$lastPage = $this->GetJournal($charId->character_id);
|
||||
$this->line('Last Page recorded was ' . $lastPage);
|
||||
$this->line('Received Corporation Journals for ' . $corp->corporation_id);
|
||||
$finance->GetWalletJournal(1, $charId);
|
||||
}
|
||||
|
||||
//Mark the job as finished
|
||||
$task->SetStopStatus();
|
||||
}
|
||||
|
||||
private function GetJournal($charId) {
|
||||
$finances = new FinanceHelper();
|
||||
//Get the master wallet journal for the corporation for the character
|
||||
$lastPage = $finances->GetWalletJournal(1, $charId);
|
||||
|
||||
return $lastPage;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user