#{header}
^{registerChartHtml qparam balancelabel $ accountTransactionsReportByCommodity items} $forall (torig, tacct, split, _acct, amt, bal) <- items
Date Description To/From Account(s) Amount Out/In #{balancelabel}
#{show (tdate tacct)} #{textElideRight 30 (tdescription tacct)} $forall (Posting { paccount = acc }, (summName,comma)) <- otherTransAccounts torig #{summName}#{comma} $if not split || not (mixedAmountLooksZero amt) ^{mixedAmountAsHtml amt} ^{mixedAmountAsHtml bal} $if elem CapAdd caps ^{addModal AddR j today}