Customizing Print Format Headings based on Company in ERPNext

Hello Frappe community,

I am working with ERPNext and have multiple companies in my setup. I would like to have different print format headings for each company (different logo and address), and I am seeking assistance in customizing the print format headings based on the company.

I would appreciate it if anyone could provide guidance or code snippets for achieving this in ERPNext. If you have any suggestions or tips, I would love to hear them.

Thank you in advance for your help.

Go to Letter Head and create multiple letter heads.

Then go to Company Doctype and attach default letterhead for each company

Thank you this really works!