I’ve created a letter head for the Payment Entries. Now, I edited the Payment Entry form, and from the form I’ve edited the the Letter Head column and set the new letter head as a default head. But for some mysterious reason, the letter head isn’t showing while I try to print the voucher.
If I select the letter head while creating the voucher, then this new print format shows; but selecting this every time manually is itself is a great trouble.
Obviously Print with Letterhead is selected. The letterhead is showing if I set the letterhead as a default from Letterhead list.
But I want to set different default letterhead for different vouchers like, Sale Invoice/Payment Entry/Journal Entry. So I customized the form for these and from there I pasted the letterhead name in the default field in letterhead column of the form.
Let’s take a doc type which doesn’t have “Letter Head” field built in, i.e Customer/Supplier. They don’t need letter head and ERPNext didn’t add letterhead as a standard field in the doc type.
Now, if I add a custom field in this type of doc type, “Label=Letter Head, Type=Data”, and then entry a letter head in the default field, I can easily get this, regardless another letter head is set a default.
Please let me know if you got my point. This “pefooter” is automatically coming from the customization where I can’t do it for Sales Invoice/Journal Entry as they already have standard letterhead field and entering a different letter head name in the default field doesn’t make any difference.
But, setting “pefooter” as the default only working for doc types who don’t have “Letter Head” as a standard field.
like, Customer, Supplier etc.
What I did is, added a custom field in Customer’s doctype and then set “pefooter” as the default and it’s working while another letter head is already set as default.
It should also work for the doctypes who have letter head as standard field.
If you have a multi-company setup then you could do with specific formats for that company and that can be set.
But if you want a default letterhead for a doctype (irrespective of company), then I think you set that name via Customized Form in case of default document or Edit Doctype in case of your own document residing in your app.
I wanted to have a different letter head for Purchase Receipt.
I removed the default letter head from letter head list and changed the default letter head from Company setting (default for all documents). and then changed the letter head from customize form for Purchase Receipt which worked for my case.
Find Letter Head entry in customize form and enter the name of custom letter head in display.