Multipage invoice reports

Hey guys, I hope everybody is doing great.

Is there a way in Tryton ERP to create a subtotal line if the report will have more than one page?

Let’s say I have an invoice with 20 lines in it. So instead of just printing everything in several pages, I need a way to insert a subtotal line when the page changes, as it appears in images below.

Thank you so much for all your help.