found error in contract checker
This commit is contained in:
@@ -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'
|
||||
]);
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user