Hey guys,
I am pretty good in understanding HTML and also in editing the print forms in ERPnext. I only have problems with scripts. So I would be really thankful if you could give me some help in regard to below issue.
What I basically want to do is adding a footer to quotation / invoice / purchase orders etc printouts (with our legal company details etc).
So the only thing I need is a line of script which enables me to do the following;
1) Whether the footer is shown / printed depends on whether the letterhead checkbox is ticked in the print screen (if that is not possible I am ok with adding another check box via custom fields function)
2) I am utilizing multiple companies in ERPNext so I need to use two different footers. Which footer is shown should then be depended on the value of the field "Letter Head" in the More Info section of e.g. a quotation.
3) The html code for the footer I will add myself.
So summarizing I am just seraching for a short line of code which does the following
If Letterhead Checkbox = True
Second If Letterhead Select = "Company1" then show "HTML-Code1" (in footer)
Third If Letterhead Select = "Company2" then show "HTML-Code2" (in footer)
Else Dont show any Header or Footer
Hope its understandable what I mean.
Thanks a lot for your help! Really appreciate it!
Kind regards,
Flo