diff --git a/app/Console/Commands/MiningTaxes/MiningTaxesPayments.php b/app/Console/Commands/MiningTaxes/MiningTaxesPayments.php index 5a773f418..928fec025 100644 --- a/app/Console/Commands/MiningTaxes/MiningTaxesPayments.php +++ b/app/Console/Commands/MiningTaxes/MiningTaxesPayments.php @@ -128,8 +128,6 @@ class MiningTaxesPayments extends Command } else { //If we didn't found a journal entry, then we shall check the contracts for a correct entry foreach($contracts as $contract) { - dd($invoice); - if(($contract->title == ("MMT: " . $invoice->invoice_id)) && ($currentTime->lessThanOrEqualTo($invoice->due_date))) { Invoice::where([ 'invoice_id' => $invoice->invoice_id, @@ -138,7 +136,7 @@ class MiningTaxesPayments extends Command ]); } - if(($contract->title == ("MMT: " . $invoice_id)) && ($currentTime->greaterThan($invoice->due_date))) { + if(($contract->title == ("MMT: " . $invoice->invoice_id)) && ($currentTime->greaterThan($invoice->due_date))) { Invoice::where([ 'invoice_id' => $invoice->invoice_id, ])->update([