should use MEDIUM
reprioritized
do not use depcrecated signature
WIP: calculate interim sums in grouping cursor; with Grouping.NOME display sums in header
get the sql right for displaying interim balances for each group
only count split parts in interim sums
take into account opening balance