OK I think we made something usable for Invoice Manager
It is lacking some options to cover the use of invoice template in case of a refund (in our case we use template #3 for credit notes) and it could be enhanced but it does the main job
Hope it could help someone or maybe a starting point for you
Thanks for the help