penny-lib-0.6.0.0: Extensible double-entry accounting system - library

Safe HaskellNone

Penny.Cabin.Balance.MultiCommodity.Chunker

Description

Creates the output Chunks for the Balance report for both multi-commodity reports.

Synopsis

Documentation

data Row Source

Displays a single account in a Balance report. In a single-commodity report, this account will only be one screen line long. In a multi-commodity report, it might be multiple lines long, with one screen line for each commodity.

Constructors

Row 

Fields

indentation :: Int

Indent the account name by this many levels (not by this many spaces; this number is multiplied by another number in the Chunker source to arrive at the final indentation amount)

accountTxt :: Text

Text for the name of the account

balances :: [(Commodity, BottomLine)]

Commodity balances. If this list is empty, dashes are displayed for the DrCr, Commodity, and Qty.

rowsToChunksSource

Arguments

:: (Commodity -> Qty -> Text)

How to format a balance to allow for digit grouping

-> [Row] 
-> [PreChunk]