Is there anyway you can add a line running total to a statement?

eg

Invoice Amount Total
Payment Amount Invoice-Payment

Thanks in advance

Suziem