{% var report_columns = report.get_columns_for_print(); report_columns = report_columns.filter(col => !col.hidden); if (report_columns.length > 8) { frappe.throw(__("Too many columns. Export the report and print it using a spreadsheet application.")); } %}

{%= __(report.report_name) %}

{%= filters.company %}

{% if 'cost_center' in filters %}

{%= filters.cost_center %}

{% endif %}

{%= 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 (let i=1, l=report_columns.length; i{%= report_columns[i].label %} {% } %} {% for(let j=0, k=data.length; j {% for(let i=1, l=report_columns.length; i {% const fieldname = report_columns[i].fieldname; %} {% if (!is_null(row[fieldname])) { %} {%= frappe.format(row[fieldname], report_columns[i], {}, row) %} {% } %} {% } %} {% } %}
{%= row.account_name %}

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