Commercial invoice: total value

Hi All,

I have a question:
In a commercial invoice, if it goes to more then one page, the ‘total value’ appears on each page. The scope: I need to modified the display method (totalValue) that the ‘total value’ should only appear on the last page of the commercial invoice. Something like this:

display real totalValue()
str page;


If (‘xxxPageOfTotalxxx’ > 1)

return page;


return totalValue;

Any thoughts?