See
in particular, Custom Title option checked on invoice For which see Sales Invoices: Create sales invoices
Custom Title