Fixes for viewing unprocessed charges
This commit is contained in:
parent
bb44c1a216
commit
cc906e9b22
@ -61,7 +61,7 @@ class Charge extends Model
|
|||||||
{
|
{
|
||||||
return $query
|
return $query
|
||||||
->where('active',TRUE)
|
->where('active',TRUE)
|
||||||
->whereNotNull('charge_date')
|
->whereNotNull('charge_at')
|
||||||
->whereNotNull('type')
|
->whereNotNull('type')
|
||||||
->where(function($q) {
|
->where(function($q) {
|
||||||
return $q->where('processed',FALSE)
|
return $q->where('processed',FALSE)
|
||||||
|
@ -34,9 +34,9 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
@foreach(\App\Models\Charge::unprocessed()->with(['account.user','service'])->get() as $o)
|
@foreach(\App\Models\Charge::unprocessed()->with(['account.user','service'])->get() as $o)
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="{{ url('a/charge/addedit',$o->id) }}">{{ $o->id }}</td>
|
<td><a href="{{ url('a/charge/addedit',$o->id) }}">{{ $o->id }}</a></td>
|
||||||
<td>{{ $o->charge_date->format('Y-m-d') }}</td>
|
<td>{{ $o->charge_at->format('Y-m-d') }}</td>
|
||||||
<td>{{ $o->date_orig->format('Y-m-d') }}</td>
|
<td>{{ $o->created_at->format('Y-m-d') }}</td>
|
||||||
<td>{{ $o->account->name }}</td>
|
<td>{{ $o->account->name }}</td>
|
||||||
<td>{{ $o->service->name_short }}</td>
|
<td>{{ $o->service->name_short }}</td>
|
||||||
<td>{{ $o->description }}</td>
|
<td>{{ $o->description }}</td>
|
||||||
|
Loading…
Reference in New Issue
Block a user