#{title'} $if elem AddPermission perms Kirjaa tapahtuma
    $forall torig <- items
  1. $with (payee, note) <- payeeAndNoteFromDescription' $ tdescription torig
    $case tstatus torig $of Unmarked
    $of Pending
    $of Cleared
    $if not $ T.null $ tcode torig
    (#{tcode torig}) $if not $ T.null $ T.strip payee #{payee} $if not $ T.null $ T.strip note
    #{note} $if null $ filter isVisibleTag $ ttags torig $else