Is it possible to edit sales invoice template

Also be advised, @MicheleA, that when you use the default template example, it does not include all the functionality of the standard sales invoice. It is not even the actual code used to generate the standard invoice. So partial payments, Paid in Full stamp, etc., will not appear.