This commit is contained in:
2018-11-22 23:03:48 -06:00
parent 3e90cb1474
commit b6c93c81e0
3 changed files with 20 additions and 1 deletions
+5 -1
View File
@@ -107,6 +107,10 @@ class Finances {
}
private function PutWalletJournal($journal, $corpId, $division) {
//Create ESI Helper class
$esiHelper = new Esi;
$date = $esiHelper->DecodeDate($journal['date']);
$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) {
@@ -126,7 +130,7 @@ class Finances {
if(isset($journal['context_id_type'])) {
$entry->context_id_type = $journal['context_id_type'];
}
$entry->date = $journal['date'];
$entry->date = $date;
$entry->description = $journal['description'];
if(isset($journal['first_party_id'])) {
$entry->first_party_id = $journal['first_party_id'];