updated finance helper along with some other helper functions to prepare for jump bridge statics and other statistics

This commit is contained in:
2018-12-21 20:11:34 -06:00
parent b1e1b34fbc
commit 685ac73f15
16 changed files with 601 additions and 124 deletions
+1 -12
View File
@@ -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;
}
}