ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

How to Change Letter Head in Sales Invoice

customization
print_format

#1

I want to have 2 different letter head. One for Purchase Order and Other for Sales Invoice.
I have created 2 letter heads.
How do I assign each to their respective doc type


#2

Just create two different custom print formats for each doctype: Purchase Order and Sales Invoice. Each one with its letterhead format.


#3

In the Printing Settings section, you can set the Letter Head. You can Customize and set the specific Letter Head’s name as Default in that doctype


#4

I tried, but its not happening. Can someone share a screenshot or video ?
Many Thanks !


#5

i think there is no any setting available for use auto 2 different letter head for same company. you can add this script in custom script.

frappe.ui.form.on(cur_frm.doctype, {
onload: function(frm,cdt,cdn) {
	if(frm.doc.__islocal){
	if(!frm.doc.letter_head){
			frappe.model.set_value(cdt,cdn,"letter_head","Surat")
	}
	}

    }
});

Here “Surat” is my letter head name so you should change it by your letter head name. you want in purchase order and sales invoice so put this script for both purchase order and sales invoice.


#6

Same for Sales Invoice :-