Hello,
we need for our company report to print per page an subtotal in the table footer. If the last page is reached, it should print the amount untaxed.
We tried this by defining a variable before the loop starts. In the loop itself we add the product subtotal to the variable and printing it in the table footer. But this didn't work as expected. The subtotal on page one and page two are the same.
For better understanding what we want:
Page one
Product 1 | 300 |
Product 2 | 400 |
Product 3 | 500 |
Subtotal | 1.200 |
Page two
Product 4 | 800 |
Amount untaxed | 2.000 |
Currently it prints the amount untaxed on every page.