From e1fd4aeebd75089a52ba014435dd0dc7db8c7497 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Fri, 19 Apr 2019 23:38:08 -0500 Subject: [PATCH] pi transactions as its own command --- app/Library/Finances/Helper/FinanceHelper.php | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/app/Library/Finances/Helper/FinanceHelper.php b/app/Library/Finances/Helper/FinanceHelper.php index 2da61dced..8af1a469b 100644 --- a/app/Library/Finances/Helper/FinanceHelper.php +++ b/app/Library/Finances/Helper/FinanceHelper.php @@ -90,15 +90,12 @@ class FinanceHelper { //For each journal entry, attempt to store it in the database. //The PutWalletJournal function checks to see if it's already in the database. foreach($wallet as $entry) { - if($entry['amount'] > 0) { - if($division == 3 && $charId == 94415555) { - if(in_array($entry['type_id'], $pi_items, true)) { - $pi = new PISale(); - $pi->InsertPISale($entry); - } + if($division == 3 && $charId == 94415555) { + if(in_array($entry['type_id'], $pi_items, true)) { + $pi = new PISale(); + $pi->InsertPISale($entry); } - } - + } } //Increment the current page we are on.