sov wallet journal
This commit is contained in:
@@ -14,6 +14,14 @@ use App\Library\Esi\Esi;
|
|||||||
use App\Models\Finances\AllianceMarketJournal;
|
use App\Models\Finances\AllianceMarketJournal;
|
||||||
|
|
||||||
class AllianceMarketTax {
|
class AllianceMarketTax {
|
||||||
|
public function EntryExists($journal) {
|
||||||
|
if(AllianceMarketJournal::where(['id' => $journal['id']])->exists()) {
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public function InsertMarketTax($journal, $corpId, $division) {
|
public function InsertMarketTax($journal, $corpId, $division) {
|
||||||
//Create the ESI Helper class
|
//Create the ESI Helper class
|
||||||
$esiHelper = new Esi;
|
$esiHelper = new Esi;
|
||||||
|
|||||||
@@ -268,7 +268,6 @@ class FinanceHelper {
|
|||||||
//For each journal entry, attempt to store it in the database.
|
//For each journal entry, attempt to store it in the database.
|
||||||
//The PutWalletJournal function checks to see if it's already in the database.
|
//The PutWalletJournal function checks to see if it's already in the database.
|
||||||
foreach($wallet as $entry) {
|
foreach($wallet as $entry) {
|
||||||
if($entry['amount'] > 0) {
|
|
||||||
if($entry['ref_type'] == 'brokers_fee') {
|
if($entry['ref_type'] == 'brokers_fee') {
|
||||||
$market->InsertMarketTax($entry, $corpId, $division);
|
$market->InsertMarketTax($entry, $corpId, $division);
|
||||||
} else if($entry['ref_type'] == 'reprocessing_tax') {
|
} else if($entry['ref_type'] == 'reprocessing_tax') {
|
||||||
@@ -289,7 +288,6 @@ class FinanceHelper {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private function GetPIMaterialsArray() {
|
private function GetPIMaterialsArray() {
|
||||||
//Setup array for PI items
|
//Setup array for PI items
|
||||||
|
|||||||
Reference in New Issue
Block a user