corp structure

This commit is contained in:
2018-11-22 01:49:12 -06:00
parent 2c95f5a24f
commit a56f00a98d
2 changed files with 2 additions and 2 deletions

View File

@@ -110,7 +110,7 @@ class Finances {
$check = DB::table('CorpJournals')->where('id', $journal['id'])->get();
//if we don't find the journal entry, add the journal entry to the database
if($check->count() === 0) {
$entry = new \App\Models\CorpJournal;
$entry = new CorpJournal;
$entry->id = $journal['id'];
$entry->corporation_id = $corpId;
$entry->division = $division;

View File

@@ -9,7 +9,7 @@ class CorpJournal extends Model
/**
* Table Name
*/
protected $table = 'CorpJournal';
protected $table = 'CorpJournals';
/**
* Timestamps