From 0a4090650d362cf00a7c670f82e083e7979b9c32 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Thu, 18 Mar 2021 20:56:12 +0900 Subject: [PATCH] payment testing --- app/Console/Commands/MiningTaxes/MiningTaxesPayments.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Console/Commands/MiningTaxes/MiningTaxesPayments.php b/app/Console/Commands/MiningTaxes/MiningTaxesPayments.php index 5de268330..9b80ea9ff 100644 --- a/app/Console/Commands/MiningTaxes/MiningTaxesPayments.php +++ b/app/Console/Commands/MiningTaxes/MiningTaxesPayments.php @@ -100,7 +100,7 @@ class MiningTaxesPayments extends Command //to pay the contract foreach($outstanding as $invoice) { - dd($invoice); + //See if we have a reason with the correct uniqid from the player donation journal $found = AllianceWalletJournal::where([ 'ref_type' => 'player_donation', @@ -126,6 +126,8 @@ class MiningTaxesPayments extends Command ]); } } else { + dd($invoice); + //If we didn't found a journal entry, then we shall check the contracts for a correct entry foreach($contracts as $contract) { if(($contract->title == ("MMT: " . $invoice->invoice_id)) && ($currentTime->lessThanOrEqualTo($invoice->due_date))) {