{{ filters.party[0] }}

{{ _("Statement of Accounts") }}

{{ frappe.format(filters.from_date, 'Date')}} {{ _("to") }} {{ frappe.format(filters.to_date, 'Date')}}
{% for row in data %} {% if(row.posting_date) %} {% else %} {% endif %} {% endfor %}
{{ _("Date") }} {{ _("Ref") }} {{ _("Party") }} {{ _("Debit") }} {{ _("Credit") }} {{ _("Balance (Dr - Cr)") }}
{{ frappe.format(row.posting_date, 'Date') }} {{ row.voucher_type }}
{{ row.voucher_no }}
{% if not (filters.party or filters.account) %} {{ row.party or row.account }}
{% endif %} {{ _("Against") }}: {{ row.against }}
{{ _("Remarks") }}: {{ row.remarks }} {% if row.bill_no %}
{{ _("Supplier Invoice No") }}: {{ row.bill_no }} {% endif %}
{{ frappe.utils.fmt_money(row.debit, currency=filters.presentation_currency) }} {{ frappe.utils.fmt_money(row.credit, currency=filters.presentation_currency) }} {{ frappe.format(row.account, {fieldtype: "Link"}) or " " }} {{ row.account and frappe.utils.fmt_money(row.debit, currency=filters.presentation_currency) }} {{ row.account and frappe.utils.fmt_money(row.credit, currency=filters.presentation_currency) }} {{ frappe.utils.fmt_money(row.balance, currency=filters.presentation_currency) }}


{% if aging %}

{{ _("Ageing Report Based On ") }} {{ aging.ageing_based_on }}

{{ _("Up to " ) }} {{ frappe.format(filters.to_date, 'Date')}}

30 Days 60 Days 90 Days 120 Days
{{ frappe.utils.fmt_money(aging.range1, currency=filters.presentation_currency) }} {{ frappe.utils.fmt_money(aging.range2, currency=filters.presentation_currency) }} {{ frappe.utils.fmt_money(aging.range3, currency=filters.presentation_currency) }} {{ frappe.utils.fmt_money(aging.range4, currency=filters.presentation_currency) }}
{% endif %}

Printed On {{ frappe.format(frappe.utils.get_datetime(), 'Datetime') }}