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

Edit Transaction - {{ account.name }}

Back to Account
{{ 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.amount.label(class="form-label") }} {{ form.amount(class="form-control", placeholder="0.00") }} {% if form.amount.errors %}
{{ form.amount.errors[0] }}
{% endif %} Positive for deposits, negative for withdrawals
{{ form.ref_customer_id.label(class="form-label") }} {{ form.ref_customer_id(class="form-control") }} {% if form.ref_customer_id.errors %}
{{ form.ref_customer_id.errors[0] }}
{% endif %} Optional: Link this transaction to a customer
Cancel

Current Account Balance

{{ current_balance|currency }}

{% if current_balance > 0 %} Account has {{ current_balance|currency }} available {% else %} Account is overdrawn by {{ (current_balance * -1)|currency }} {% endif %}

{% endblock %}