finances controller items

This commit is contained in:
2018-11-20 01:23:54 -06:00
parent d40e9daeb9
commit 5bc01d1a90
4 changed files with 48 additions and 10 deletions
+7 -1
View File
@@ -24,6 +24,10 @@ use Seat\Eseye\Eseye;
class Finances {
public function CalculateAverageFuelBlock() {
}
public function CalculateMonthlyRefineryTaxees($corpId, $month, $overallTax) {
$currentTime = Carbon::now();
$monthWanted = $month;
@@ -96,7 +100,9 @@ class Finances {
$journals = json_decode($journal->raw, true);
//For each journal array, attempt to store in the database
foreach($journals as $entry) {
$this->PutWalletJournal($entry, $corpId, $divison);
if($entry['ref_type'] == 46 || $entry['ref_type'] == 127) {
$this->PutWalletJournal($entry, $corpId, $divison);
}
}
}