From 32f7c1bd016bc3712a29b71944b7aebff334d878 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Thu, 22 Nov 2018 01:34:07 -0600 Subject: [PATCH] corp structures --- app/Console/Commands/corpJournal.php | 2 +- app/Library/Finances.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); } } }