{{ __('Edit Transaction') }} #{{ $txn->id }}

@include('accounting.partials.nav')
Type
{{ $txn->txn_type }}
Status
{{ $txn->status }}
Auto Note
{{ $txn->auto_note ?? '-' }}
@csrf @method('PATCH')
Admin editor: you can change the transaction and its ledger lines. Ledger lines must balance (sum of deltas = 0).
@if(!empty($warnings))
Warning
@foreach($warnings as $w)
- {{ $w }}
@endforeach
@endif
Ledger Lines
Use positive for debit (+) and negative for credit (-). Must balance to 0.
@php $initialLedgers = old('ledgers'); if (!is_array($initialLedgers)) { $initialLedgers = ($ledgers ?? collect())->map(function ($l) { return [ 'account_id' => $l->account_id, 'delta' => $l->delta, 'category_id' => $l->category_id, 'subcategory_id' => $l->subcategory_id, 'note' => $l->note, ]; })->toArray(); } @endphp @foreach($initialLedgers as $i => $l) @endforeach
Account Delta Category Subcategory Note
Back