{%= frappe.boot.letter_heads[frappe.get_doc(":Company", filters.company).default_letter_head || frappe.defaults.get_default("letter_head")] %}

{%= __(report.report_name) %}

{%= filters.customer || filters.supplier %}

{%= filters.ageing_based_on %} {%= __("Until") %} {%= dateutil.str_to_user(filters.report_date) %}

{% if(__(report.report_name) == "Accounts Receivable" || __(report.report_name) == "Accounts Payable") { %} {% } else { %} {% } %} {% for(var i=0, l=data.length; i {% if(__(report.report_name) == "Accounts Receivable" || __(report.report_name) == "Accounts Payable") { %} {% if(data[i][__("Customer")] || data[i][__("Supplier")]) { %} {% } else { %} {% } %} {% } else { %} {% if(data[i][__("Customer")] || data[i][__("Supplier")]|| " ") { %} {% if((data[i][__("Customer")] || data[i][__("Supplier")]) != __("'Total'")) { %} {% } else { %} {% } %} {% } %} {% } %} {% } %}
{%= __("Date") %} {%= __("Ref") %} {%= __("Party") %} {%= __("Invoiced Amount") %} {%= __("Paid Amount") %} {%= __("Outstanding Amount") %}{%= __("Party") %} {%= __("Total Invoiced Amount") %} {%= __("Total Paid Amount") %} {%= __("Total Outstanding Amount") %}
{%= dateutil.str_to_user(data[i][__("Posting Date")]) %} {%= data[i][__("Voucher Type")] %}
{%= data[i][__("Voucher No")] %}
{%= data[i][__("Customer Name")] || data[i][__("Customer")] || data[i][__("Supplier Name")] || data[i][__("Supplier")] %}
{%= __("Remarks") %}: {%= data[i][__("Remarks")] %}
{%= format_currency(data[i][__("Invoiced Amount")], data[i]["currency"]) %} {%= format_currency(data[i][__("Paid Amount")], data[i]["currency"]) %} {%= format_currency(data[i][__("Outstanding Amount")], data[i]["currency"]) %} {%= __("Total") %} {%= format_currency(data[i][__("Invoiced Amount")]) %} {%= format_currency(data[i][__("Paid Amount")]) %} {%= format_currency(data[i][__("Outstanding Amount")]) %}{%= data[i][__("Customer")] || data[i][__("Supplier")] %}
{%= __("Remarks") %}: {%= data[i][__("Remarks")] %}
{%= __("Total") %}{%= format_currency(data[i][__("Total Invoiced Amt")]) %} {%= format_currency(data[i][__("Total Paid Amt")]) %} {%= format_currency(data[i][__("Total Outstanding Amt")]) %}

Printed On {%= dateutil.str_to_user(dateutil.get_datetime_as_string()) %}