mining tax payments

This commit is contained in:
2021-03-18 20:51:17 +09:00
parent f036aa61f7
commit 3f8bcfd588

View File

@@ -16,7 +16,7 @@ use App\Library\Esi\Esi;
//Models
use App\Models\MiningTax\Invoice;
use App\Models\MiningTax\Payment;
use App\Models\Finances\PlayerDonationJournal;
use App\Models\Finances\AllianceWalletJournal;
//Jobs
use App\Jobs\Commands\MiningTaxes\ProcessMiningTaxesPaymentsJob;
@@ -100,7 +100,8 @@ class MiningTaxesPayments extends Command
//to pay the contract
foreach($outstanding as $invoice) {
//See if we have a reason with the correct uniqid from the player donation journal
$found = PlayerDonationJournal::where([
$found = AllianceWalletJournal::where([
'ref_type' => 'player_donation',
'reason' => "MMT: " . $invoice->invoice_id,
])->count();