added some logic to handle corporation to corporation account transfer for reviewing the journal

This commit is contained in:
2018-12-20 20:15:56 -06:00
parent 1ffd21369f
commit c652c11357

View File

@@ -76,7 +76,8 @@ class FinanceHelper {
if($entry['ref_type'] == 'brokers_fee' ||
$entry['ref_type'] == 'reprocessing_tax' ||
$entry['ref_type'] == 'jumpgate_fee' ||
$entry['ref_type'] == 'player_donation') {
$entry['ref_type'] == 'player_donation' ||
($entry['ref_type'] == 'corporation_account_withdrawal' && $entry['second_party_id'] == 99004116)) {
$this->PutWalletJournal($entry, $corpId, $division);
}
}
@@ -138,7 +139,7 @@ class FinanceHelper {
$esiHelper = new Esi;
$date = $esiHelper->DecodeDate($journal['date']);
if($journal['ref_type'] == 'player_donation') {
if($journal['ref_type'] == 'player_donation' || ($journal['ref_type'] == 'corporation_account_withdrawal' && $journal['second_party_id'] == 99004116)) {
//if we don't find the journal entry, add the journal entry to the database
if(!PlayerDonationJournal::where(['id' => $journal['id']])->exists()) {
$entry = new PlayerDonationJournal;