penny-0.26.0.0: Extensible double-entry accounting system

Safe HaskellNone

Penny.Cabin.Balance.Convert.Chunker

Description

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

Synopsis

Documentation

data MainRow 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

MainRow 

Fields

mrIndentation :: 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)

mrText :: Text

Text for the name of the account

mrBottomLine :: BottomLine

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

data OneColRow Source

Displays a one-column row.

Constructors

OneColRow 

Fields

ocIndentation :: Int

Indent the text 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)

ocText :: Text

Text for the left column

rowsToChunksSource

Arguments

:: Changers 
-> (Qty -> Text)

How to format a balance to allow for digit grouping

-> [Row] 
-> [Chunk]