erpnext/accounts/report/financial_statements.html
{% 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.")); } %}
{% if 'cost_center' in filters %}
{% endif %}
{% if (filters.from_date) { %}
{% } %}
{% if subtitle %} {{ subtitle }}
{% endif %}
| {%= report_columns[0].label %} | {% for (let i=1, l=report_columns.length; i{%= report_columns[i].label %} {% } %} {% for(let j=0, k=data.length; j {%= row.account_name || row.section %} | {% 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) %} {% } %} {% } %} {% } %}
{%= __("Printed on {0}", [frappe.datetime.str_to_user(frappe.datetime.get_datetime_as_string())]) %}