close #2221 Fixed: Account Show wrong show transction date
This commit is contained in:
parent
c0ebf807c1
commit
d763f99d1b
@ -34,8 +34,6 @@ class Accounts extends Controller
|
||||
*/
|
||||
public function show(Account $account)
|
||||
{
|
||||
$limit = (int) request('limit', setting('default.list_limit', '25'));
|
||||
|
||||
// Handle transactions
|
||||
$transactions = Transaction::with('account', 'category')->where('account_id', $account->id)->collect('paid_at');
|
||||
|
||||
@ -43,7 +41,7 @@ class Accounts extends Controller
|
||||
if ($transfer->expense_account->id == $account->id || $transfer->income_account->id == $account->id) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
return false;
|
||||
})->sortByDesc(function ($transfer) {
|
||||
return $transfer->expense_transaction->paid_at;
|
||||
|
@ -216,7 +216,7 @@
|
||||
<tbody>
|
||||
@foreach($transactions as $item)
|
||||
<tr class="row align-items-center border-top-1 tr-py">
|
||||
<td class="col-sm-3"><a href="{{ route($item->route_name, $item->route_id) }}">@date($item->issued_at)</a></td>
|
||||
<td class="col-sm-3"><a href="{{ route($item->route_name, $item->route_id) }}">@date($item->paid_at)</a></td>
|
||||
<td class="col-sm-3">@money($item->amount, $item->currency_code, true)</td>
|
||||
<td class="col-sm-3">{{ $item->type_title }}</td>
|
||||
<td class="col-sm-3">{{ $item->category->name }}</td>
|
||||
@ -257,7 +257,7 @@
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="card-footer py-4 table-action">
|
||||
|
Loading…
x
Reference in New Issue
Block a user