get(); //For each structure get the corp journals from the corporation owning the structure foreach($structures as $structure) { $this->line('Getting corp journal'); $this->GetJournal($structure->character_id); } } private function GetJournal($charId) { $finances = new Finances(); //Get the master wallet journal for the corporation for the character $finances->GetWalletJournal(1, $charId); } }