@extends('layouts.app') @section('title', 'New Journal Entry') @section('content') @php $oldLines = old('lines', []); $rowCount = max(2, count($oldLines)); @endphp

New journal entry

Double-entry voucher — every debit must have an equal credit. Debit lines are listed first and credits indented on the posted voucher.
Journal entries
@include('finance._nav') @if($errors->any())
Please correct the following:
@endif
@csrf

Voucher details

The voucher number is assigned automatically when the entry is posted.
JV · Posted on save

Accounts affected

Start with the debited account, then add the credited account below it.
@for($i = 0; $i < $rowCount; $i++) @include('finance._journal-line', ['index' => $i, 'ledgers' => $ledgers, 'side' => $i === 0 ? 'Debit' : 'Credit']) @endfor
SideAccountAmount (KES)Memo
Total debits 0.00 Total credits: 0.00
Add equal debit and credit amounts
Difference: 0.00
Cancel
@endsection @push('scripts') @endpush