found error in contract checker

This commit is contained in:
2021-03-14 07:22:19 +09:00
parent adadd7994e
commit d66fa052fb
2 changed files with 8 additions and 1 deletions

View File

@@ -127,7 +127,7 @@ class MiningTaxesPayments extends Command
foreach($contracts as $contract) {
if(($contract->title == ("MMT: " . $invoice->invoice_id)) && ($currentTime->lessThanOrEqualTo($invoice->due_date))) {
Invoice::where([
'invoice_i' => $invoice->invoice_id,
'invoice_id' => $invoice->invoice_id,
])->update([
'stauts' => 'Paid'
]);

View File

@@ -5,6 +5,7 @@ namespace App\Http\Controllers\AfterActionReports;
//Internal Library
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Carbon\Carbon;
//Models
use App\Models\AfterActionReports\Report;
@@ -70,8 +71,14 @@ class AfterActionReportsController extends Controller
}
public function DisplayAllReports() {
//Declare variables
$comments = array();
//Grab all the reports
$reports = AfterActionReports::where('created_at', '>=', Carbon::now()->subDays(30));
return view('reports.user.displayreports');
}
}