Using pdfAddPageItem to Sum Totals per Page
-
I'm using pdfAddPageItem to add values which I want totaled in the footer of each page. The problem is it's totaling the entire report's values on the first page and doesn't get values for the rest of the pages.
Here is a playground showing the problem.
What am I missing?
-
Put the
pdfAddPageItem
helper call to thetd
element.<td class="align-right">{{formatMoney Total}}{{{pdfAddPageItem Total}}}</td>
-
That did the trick. Thanks!