diff --git a/app/Models/Charge.php b/app/Models/Charge.php index e09a8b5..85528b0 100644 --- a/app/Models/Charge.php +++ b/app/Models/Charge.php @@ -61,7 +61,7 @@ class Charge extends Model { return $query ->where('active',TRUE) - ->whereNotNull('charge_date') + ->whereNotNull('charge_at') ->whereNotNull('type') ->where(function($q) { return $q->where('processed',FALSE) diff --git a/resources/views/theme/backend/adminlte/a/charge/unprocessed.blade.php b/resources/views/theme/backend/adminlte/a/charge/unprocessed.blade.php index 4a1d4a2..95fd19d 100644 --- a/resources/views/theme/backend/adminlte/a/charge/unprocessed.blade.php +++ b/resources/views/theme/backend/adminlte/a/charge/unprocessed.blade.php @@ -34,9 +34,9 @@
@foreach(\App\Models\Charge::unprocessed()->with(['account.user','service'])->get() as $o)