corp structures

This commit is contained in:
2018-11-22 01:34:07 -06:00
parent 2f3f916b82
commit 32f7c1bd01
2 changed files with 2 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ class corpJournal extends Command
//Setup the Finances Container
$finance = new Finances();
//Get the corps with structures logged in the database
$structures = DB::table('CorpStructures')->get();
//Get the characters that have the esi-wallet.read_corporation_wallets.v1
//esi wallet scope
$characters = DB::table('EsiScopes')->where('scope', 'esi-wallet.read_corporation_wallets.v1')->get();

View File

@@ -101,7 +101,7 @@ class Finances {
//For each journal array, attempt to store in the database
foreach($journals as $entry) {
if($entry['ref_type'] == 'brokers_fee' || $entry['ref_type'] == 'reprocessing_tax') {
$this->PutWalletJournal($entry, $corpId, $divison);
$this->PutWalletJournal($entry, $entry->corporation_id, $divison);
}
}
}