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

Record Payment - {{ farm.name }}

Current Payable

{{ balance|currency }}

{% if balance > 0 %} You owe the farm {{ balance|currency }} {% else %} Farm owes you {{ (balance * -1)|currency }} {% endif %}

{{ form.hidden_tag() }}
{{ form.date(type='date') }}
{{ form.amount(step='0.01') }}
{{ form.account_id() }}
{% for subfield in form.payment_type %}
{{ subfield() }} {{ subfield.label }}
{% endfor %}
{{ form.note() }}
{{ form.submit(class_='btn-primary') }}
{% endblock %} {% block scripts %} {% endblock %}