Currently in Microsoft Dynamics 365 for Finance and Operations, the Manage invoice functionality does not give the flexibility to group transactions on an invoice. Enhancements have been made to the invoicing functionality to group transactions based on attributes such as Category, Activity, etc.
The grouping is visible on a split screen in the invoice proposal. A new invoice format (Invoice Grouping) has been created to capture the grouping of invoice.
Thanks for your feedback.