{% extends 'base.html' %} {% block content %}

Edit Transaction - {{ customer.name }}

Back to Ledger
{{ form.hidden_tag() }}
{{ form.date.label(class="form-label") }} {{ form.date(class="form-control") }} {% if form.date.errors %}
{{ form.date.errors[0] }}
{% endif %}
{{ form.description.label(class="form-label") }} {{ form.description(class="form-control") }} {% if form.description.errors %}
{{ form.description.errors[0] }}
{% endif %}
{{ form.debit.label(class="form-label") }} {{ form.debit(class="form-control", placeholder="0.00") }} {% if form.debit.errors %}
{{ form.debit.errors[0] }}
{% endif %} Amount customer owes (sale/purchase)
{{ form.credit.label(class="form-label") }} {{ form.credit(class="form-control", placeholder="0.00") }} {% if form.credit.errors %}
{{ form.credit.errors[0] }}
{% endif %} Payment received from customer
Cancel

Current Balance

{{ current_balance|currency }}

{% if current_balance > 0 %} Customer owes {{ current_balance|currency }} {% else %} Customer has credit of {{ (current_balance * -1)|currency }} {% endif %}

{% endblock %}