How to manage invoice grouping

This is perfectly managed by the Sale Invoice Grouping module.