From d170f9f84b4ed7d02fe40206d99d6d7446dd11d4 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Fri, 3 May 2019 01:00:54 -0500 Subject: [PATCH] pi stuff --- app/Library/Finances/PISale.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Library/Finances/PISale.php b/app/Library/Finances/PISale.php index fdd1e8510..34f07fead 100644 --- a/app/Library/Finances/PISale.php +++ b/app/Library/Finances/PISale.php @@ -22,9 +22,9 @@ dd($journal); //Insert the PI Sale into the database - if(!PISaleJournal::where(['id' => $journal['id']])->exists()) { + if(!PISaleJournal::where(['id' => $journal['journal_ref_id']])->exists()) { $entry = new PISaleJournal; - $entry->id = $journal['id']; + $entry->id = $journal['journal_ref_id']; $entry->corporation_id = $corpId; $entry->division = $division; if(isset($journal['client_id'])) {