found error in contract checker
This commit is contained in:
@@ -127,7 +127,7 @@ class MiningTaxesPayments extends Command
|
|||||||
foreach($contracts as $contract) {
|
foreach($contracts as $contract) {
|
||||||
if(($contract->title == ("MMT: " . $invoice->invoice_id)) && ($currentTime->lessThanOrEqualTo($invoice->due_date))) {
|
if(($contract->title == ("MMT: " . $invoice->invoice_id)) && ($currentTime->lessThanOrEqualTo($invoice->due_date))) {
|
||||||
Invoice::where([
|
Invoice::where([
|
||||||
'invoice_i' => $invoice->invoice_id,
|
'invoice_id' => $invoice->invoice_id,
|
||||||
])->update([
|
])->update([
|
||||||
'stauts' => 'Paid'
|
'stauts' => 'Paid'
|
||||||
]);
|
]);
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ namespace App\Http\Controllers\AfterActionReports;
|
|||||||
//Internal Library
|
//Internal Library
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
|
use Carbon\Carbon;
|
||||||
|
|
||||||
//Models
|
//Models
|
||||||
use App\Models\AfterActionReports\Report;
|
use App\Models\AfterActionReports\Report;
|
||||||
@@ -70,6 +71,12 @@ class AfterActionReportsController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function DisplayAllReports() {
|
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');
|
return view('reports.user.displayreports');
|
||||||
|
|||||||
Reference in New Issue
Block a user