I have come across a format bug with custom sales invoices. The bug occurs on Mac (16.5.60) & Linux (16.7.11) Desktop editions as well as ManagerServer (16.7.35) on Linux (which I am evaluating).
The notes field on sales invoices formats properly with the default template but new lines are ignored if you use a custom template resulting in the note appearing on a single line.
Steps to reproduce:
- Create a invoice with notes spanning a few lines. Onscreen / PDF / Email views all show the notes spanning multiple lines
- Create a custom template in settings (just create one, give it a name and save it)
- Edit the Invoice created in step 1 and change the template of the new one created in step 2
- Onscreen / PDF / Email views all show the notes on a single line now.
This topic Sales Invoice Template Format Issue describes a similar problem on a different field but the workaround of ending the lines with two spaces doesn’t work for me.
This seems to be a systematic problem with the relevant datatype rather than an issue with the notes field itself as ‘Paragraph’ custom fields exhibit the exact same behaviour on custom invoice templates too.
The only solution I have found is to hardcode the note into the custom invoice in place of the {{note}} utilising html formatting. This is fine for now but its the sort of thing that catches you out later when the note gets changed by the user…