payment testing

This commit is contained in:
2021-03-18 20:57:25 +09:00
parent a69e09efeb
commit 001ff9e4e3

View File

@@ -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([