{% 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) || frappe.defaults.get_default("letter_head"); %} {% if(letterhead) { %}
{%= frappe.boot.letter_heads[letterhead].header %}
{% } %}

{%= __(report.report_name) %}

{%= filters.company %}

{%= filters.fiscal_year %}

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

{%= dateutil.str_to_user(filters.from_date) %} - {%= dateutil.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].field; %} {% if (!is_null(row[fieldname])) { %} {%= format_number(row[fieldname], null)%} {% } %} {% } %} {% } %}
{%= row.account_name %}

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