i am created a custom print format , when i am checked letter head but this print format letter head dont show
@Rahib_Hasan . Kindly add this in your custom print format script .
{%- macro add_header(page_num, max_pages, doc, letter_head, no_letterhead) -%}
{% if letter_head and not no_letterhead %}
<div class="letter-head">{{ letter_head }}</div>
{% endif %}
{% if max_pages > 1 %}
<p class="text-right">{{ _("Page #{0} of {1}").format(page_num, max_pages) }}</p>
{% endif %}
{%- endmacro -%}
{{ add_header(0,1,doc,letter_head, no_letterhead) }}
Thanks
8 Likes
Strange, have you tried creating another print format?
all custom print format are same problem
thanks buddy it’s working
1 Like
Glad to help . Thanks
This topic was automatically closed after 24 hours. New replies are no longer allowed.