sov wallet journal

This commit is contained in:
2020-04-04 03:25:41 -05:00
parent 649e9cff13
commit dd0fb8eff0
2 changed files with 25 additions and 19 deletions

View File

@@ -14,6 +14,14 @@ use App\Library\Esi\Esi;
use App\Models\Finances\AllianceMarketJournal;
class AllianceMarketTax {
public function EntryExists($journal) {
if(AllianceMarketJournal::where(['id' => $journal['id']])->exists()) {
return true;
} else {
return false;
}
}
public function InsertMarketTax($journal, $corpId, $division) {
//Create the ESI Helper class
$esiHelper = new Esi;

View File

@@ -268,7 +268,6 @@ 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($entry['ref_type'] == 'brokers_fee') {
$market->InsertMarketTax($entry, $corpId, $division);
} else if($entry['ref_type'] == 'reprocessing_tax') {
@@ -289,7 +288,6 @@ class FinanceHelper {
}
}
}
}
private function GetPIMaterialsArray() {
//Setup array for PI items