{% extends "pos/base.html" %} {% load static %} {% block title %}General Ledger{% endblock %} {% block stylesheets %} {% endblock %} {% block heading %}General Ledger{% endblock %} {% block content %}
{% if ledger %} {% endif %}
{% if ledger %}
{{ ledger.account.code }} — {{ ledger.account.name }} ({{ ledger.account.get_account_type_display }})
Total Debit
{{ ledger.total_debit|floatformat:2 }}
Total Credit
{{ ledger.total_credit|floatformat:2 }}
Closing Balance
{{ ledger.closing_balance|floatformat:2 }} {{ ledger.closing_balance_type }}
{% for line in ledger.lines %} {% empty %} {% endfor %}
Date Voucher No Type Party Description Debit Credit Balance
{{ line.date }} {{ line.voucher_no }} {{ line.voucher_type }} {{ line.party_name }} {{ line.description }} {% if line.debit %}{{ line.debit|floatformat:2 }}{% endif %} {% if line.credit %}{{ line.credit|floatformat:2 }}{% endif %} {{ line.running_balance|floatformat:2 }} {{ line.balance_side }}
No transactions in this period.
Totals: {{ ledger.total_debit|floatformat:2 }} {{ ledger.total_credit|floatformat:2 }} {{ ledger.closing_balance|floatformat:2 }} {{ ledger.closing_balance_type }}
{% else %}
Select an account above to view its ledger.
{% endif %} {% endblock %} {% block javascripts %} {% endblock %}