corp structures
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user