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

Edit Entry - {{ farm.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.credit.label(class="form-label") }} {{ form.credit(class="form-control", placeholder="0.00") }} {% if form.credit.errors %}
{{ form.credit.errors[0] }}
{% endif %} Amount we owe to farm (purchase)
{{ form.debit.label(class="form-label") }} {{ form.debit(class="form-control", placeholder="0.00") }} {% if form.debit.errors %}
{{ form.debit.errors[0] }}
{% endif %} Payment made to farm
{{ form.account_id.label(class="form-label") }} {{ form.account_id(class="form-control") }} {% if form.account_id.errors %}
{{ form.account_id.errors[0] }}
{% endif %} Account from which payment was made (required for payment entries)
Cancel

Current Farm Balance

{{ current_balance|currency }}

{% if current_balance > 0 %} We owe farm {{ current_balance|currency }} {% else %} Farm owes us {{ (current_balance * -1)|currency }} {% endif %}

{% if account_txn %}

Linked Account Transaction

Account: {{ account_txn.account.name }}

Amount: {{ account_txn.amount|currency }}

Date: {{ account_txn.date|date_format }}

This account transaction will be updated when you save changes.

{% endif %} {% endblock %}