diff --git a/app/Console/Commands/corpJournal.php b/app/Console/Commands/corpJournal.php index d7d55bc78..4aa5d9a11 100644 --- a/app/Console/Commands/corpJournal.php +++ b/app/Console/Commands/corpJournal.php @@ -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(); diff --git a/app/Library/Finances.php b/app/Library/Finances.php index 9af4711be..5e4fcf790 100644 --- a/app/Library/Finances.php +++ b/app/Library/Finances.php @@ -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); } } }