{% extends "pos/base.html" %} {% load static %} {% block title %}Edit Sale Invoice — {{ txn.voucher_no }}{% endblock %} {% block heading %}Edit Sale Invoice — {{ txn.voucher_no }}{% endblock %} {% block content %}
Only the description / reference note can be edited here. Debit, credit, and account amounts are controlled by the source invoice and are recalculated automatically every time it's saved — edit the amount there, not here. {% if source_link.url %} Open source invoice{% if source_link.label %} ({{ source_link.label }}){% endif %} → {% endif %}
Voucher No{{ txn.voucher_no }}
Date{{ txn.voucher_date }}
Total Amount{{ txn.total_amount|floatformat:2 }}
Party{{ txn.party.name|default:"—" }}
{% for ln in existing_lines %} {% endfor %}
AccountPartyDebitCredit
{{ ln.account.code }} — {{ ln.account.name }} {{ ln.party.name|default:"—" }} {{ ln.debit|floatformat:2 }} {{ ln.credit|floatformat:2 }}
{% csrf_token %}
Cancel
{% endblock %}