@extends('layouts.app') @section('title', 'Post Journal Entry') @section('subtitle', 'Record a balanced double-entry transaction') @section('content') Cancel @php $rows = collect(old('lines', []))->values(); while ($rows->count() < 2) { $rows->push(['account_id' => '', 'description' => '', 'debit' => '', 'credit' => '']); } @endphp
@csrf

Entry details

@error('journal')
{{ $message }}
@enderror
@error('date')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror

Lines

{{ $rows->count() }} lines
@error('lines')
{{ $message }}
@enderror
@foreach ($rows as $index => $row) @endforeach
Account Line description Debit Credit
Totals KSh 0.00 KSh 0.00
Not balanced

Posting rules

Debit the account receiving value; credit the account giving value.

  • Sales journal — Dr Accounts Receivable, Cr Training Income. Invoices post here automatically.
  • Purchases journal — Dr expense/asset, Cr Accounts Payable.
  • Returns journals — reverse the original sale or purchase.
  • Cash payments — Dr expense/liability, Cr Cash, Bank or M-Pesa.
Receipts from invoices post automatically to the Cash Receipts Journal. Voiding an entry creates a balanced reversal.
Cancel
@endsection @push('scripts') @endpush