{% var report_columns = report.get_columns_for_print(); if (report_columns.length > 8) { frappe.throw(__("Too many columns. Export the report and print it using a spreadsheet application.")); } %} {% var letterhead= filters.letter_head || (frappe.get_doc(":Company", filters.company) && frappe.get_doc(":Company", filters.company).default_letter_head) %} {% if(letterhead) { %}
{%= frappe.boot.letter_heads[letterhead].header %}
{% } %}

{%= __(report.report_name) %}

{%= filters.company %}

{%= filters.fiscal_year %}

{%= __("Currency") %} : {%= filters.presentation_currency || erpnext.get_currency(filters.company) %}
{% if (filters.from_date) { %}

{%= frappe.datetime.str_to_user(filters.from_date) %} - {%= frappe.datetime.str_to_user(filters.to_date) %}

{% } %}
{% for(var i=2, l=report_columns.length; i{%= report_columns[i].label %} {% } %} {% for(var j=0, k=data.length; j {% for(var i=2, l=report_columns.length; i {% var fieldname = report_columns[i].fieldname; %} {% if (!is_null(row[fieldname])) { %} {%= format_currency(row[fieldname], filters.presentation_currency) %} {% } %} {% } %} {% } %}
{%= row.account_name %}

Printed On {%= frappe.datetime.str_to_user(frappe.datetime.get_datetime_as_string()) %}