we have a problem with the calculation of the subtotals in our reminders which overflows more than one page.
We use a database dataMapper and within the mapper we get for every position the total sum for each reminder. A reminder can include more than one invoice. We only calculate the subtotal if the invoice-number is changing.
This works for the complete sum of a reminder without problems, this sum is always correct.
Only with subtotal our calculation takes the first position from the next page and add it to the subtotal from the previous page.
So, the subtotal is alway to much.
What can we do to resolve this?
Thank your for answers.