From e22373192491a11ec4d8904d40b256fb51ebfe94 Mon Sep 17 00:00:00 2001 From: khushi8112 Date: Fri, 19 Sep 2025 14:09:18 +0530 Subject: [PATCH] refactor: remove flex usage for better wkhtmltopdf support --- .../print_format_sales_invoice.html | 77 +++++++++++-------- 1 file changed, 45 insertions(+), 32 deletions(-) diff --git a/erpnext/accounts/print_format/print_format_sales_invoice/print_format_sales_invoice.html b/erpnext/accounts/print_format/print_format_sales_invoice/print_format_sales_invoice.html index 392b3af0dc1..2042b4271ba 100644 --- a/erpnext/accounts/print_format/print_format_sales_invoice/print_format_sales_invoice.html +++ b/erpnext/accounts/print_format/print_format_sales_invoice/print_format_sales_invoice.html @@ -1,8 +1,13 @@ {%- macro add_header(page_num, max_pages, doc, letter_head, no_letterhead, footer, print_settings=None, -print_heading_template=None) -%} {% if letter_head and not no_letterhead %} -
{{ letter_head }}
-{% endif %} {% if print_heading_template %} {{ frappe.render_template(print_heading_template, {"doc":doc}) }} -{% endif %} {%- endmacro -%} {% for page in layout %} +print_heading_template=None) -%} +{% if letter_head and not no_letterhead %} +
{{ letter_head }}
+{% endif %} +{% if print_heading_template %} + {{ frappe.render_template(print_heading_template, {"doc":doc}) }} +{% endif %} +{%- endmacro -%} +{% for page in layout %}
{{ add_header(loop.index, layout|len, doc, letter_head, no_letterhead, footer, print_settings) }} @@ -11,7 +16,7 @@ print_heading_template=None) -%} {% if letter_head and not no_letterhead %}