mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-07 06:33:57 -06:00
Catch broken journals.
This commit is contained in:
parent
f9750a64f8
commit
11280e473d
@ -17,6 +17,18 @@
|
||||
<th><i class="fa fa-fw fa-rotate-right" title="Recurring transaction"></i></th>
|
||||
</tr>
|
||||
@foreach($journals as $journal)
|
||||
@if(!isset($journal->transactions[1]) || !isset($journal->transactions[0]))
|
||||
<tr>
|
||||
<td>
|
||||
<div class="btn-group btn-group-xs">
|
||||
<a href="{{route('transactions.delete',$journal->id)}}" class="btn btn-xs btn-danger"><span class="glyphicon glyphicon-trash"></span></a>
|
||||
</div>
|
||||
</td>
|
||||
<td> </td>
|
||||
<td>{{{$journal->description}}}</td>
|
||||
<td colspan="7"><em>Invalid journal: Found {{$journal->transactions()->count()}} transaction(s)</td>
|
||||
</tr>
|
||||
@else
|
||||
<tr>
|
||||
<td>
|
||||
<div class="btn-group btn-group-xs">
|
||||
@ -91,6 +103,8 @@
|
||||
|
||||
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@endforeach
|
||||
</table>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user