structure stuff

This commit is contained in:
2018-11-22 00:49:15 -06:00
parent 8f0c7b3d73
commit f250a82083
6 changed files with 7 additions and 3 deletions

View File

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

View File

@@ -31,7 +31,8 @@ class FinancesController extends Controller
public function displayWallet() {
$helper = new Finances();
$data = $helper->GetWalletJournal(1, 92626011);
$helper->GetWalletJournal(1, 92626011);
dd($helper);
}
public function displayTaxes() {

View File

@@ -30,6 +30,7 @@ class RegisterStructure extends Controller
]);
$structure = new CorpStructure();
$structure->character_id = Auth::user()->character_id;
$structure->corporation_id = $request->corporation_id;
$structure->corporation_name = $request->corporation_name;
$structure->region = $request->region;

View File

@@ -101,8 +101,6 @@ 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') {
printf("Found Entry");
dd($entry);
$this->PutWalletJournal($entry, $corpId, $divison);
}
}

View File

@@ -22,6 +22,7 @@ class CorpStructure extends Model
* @var array
*/
protected $fillable = [
'character_id',
'corporation_id',
'corporation_name',
'region',

View File

@@ -16,6 +16,7 @@ class CreateCorpStructure extends Migration
if(!Schema::hasTable('CorpStructures')) {
Schema::create('CorpStructures', function(Blueprint $table) {
$table->increments('id');
$table->integer('character_id');
$table->integer('corporation_id');
$table->string('corporation_name');
$table->string('region');