Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Catch broken journals.
James Cole11280e473d09
diff --git a/app/views/list/journals-full.blade.php b/app/views/list/journals-full.blade.phpindex 768c7b1178..b4cec4ae25 100644--- a/app/views/list/journals-full.blade.php+++ b/app/views/list/journals-full.blade.php@@ -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>