{% extends 'base.html' %} {% load static %} {% block title %}Create Journal Entry - HAVEN GRAZURI INVESTMENT LIMITED{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

Create Journal Entry

Create a new journal entry with double-entry bookkeeping

Cancel

Double-Entry Bookkeeping

Every transaction requires at least two entries: one debit and one credit. The total debits must equal total credits for the entry to balance.

{% csrf_token %}

Entry Information

{% if form.errors or formset.non_form_errors %}

Please correct the following errors:

    {% for error in form.non_field_errors %}
  • {{ error }}
  • {% endfor %} {% for error in formset.non_form_errors %}
  • {{ error }}
  • {% endfor %}
{% endif %}
{{ form.transaction_date }} {% if form.transaction_date.errors %}

{{ form.transaction_date.errors.0 }}

{% endif %}
{{ form.branch }} {% if form.branch.errors %}

{{ form.branch.errors.0 }}

{% endif %}
{{ form.description }} {% if form.description.errors %}

{{ form.description.errors.0 }}

{% endif %}

Journal Entry Lines

Balance: KES 0.00
{{ formset.management_form }}
{% for line_form in formset %}

Line {{ forloop.counter }}

{% if not line_form.instance.pk %} {% endif %}
{% for hidden in line_form.hidden_fields %} {{ hidden }} {% endfor %}
{{ line_form.account }} {% if line_form.account.errors %}

{{ line_form.account.errors.0 }}

{% endif %}
{{ line_form.description }} {% if line_form.description.errors %}

{{ line_form.description.errors.0 }}

{% endif %}
{{ line_form.debit_amount }} {% if line_form.debit_amount.errors %}

{{ line_form.debit_amount.errors.0 }}

{% endif %}
{{ line_form.credit_amount }} {% if line_form.credit_amount.errors %}

{{ line_form.credit_amount.errors.0 }}

{% endif %}
{% if line_form.DELETE %} {{ line_form.DELETE }} {% endif %}
{% endfor %}

Total Debits

KES 0.00

Total Credits

KES 0.00

Difference

KES 0.00

Cancel
{% endblock %} {% block extra_js %} {% endblock %}