You must be able to create different email templates based on:
Of the type of document
Of the customer type
Articles from the document
A payment receipt confirmation template is also required.
·