doc update
This commit is contained in:
parent
cc81700d2a
commit
db8b00d6e5
@ -1,8 +1,8 @@
|
|||||||
{-|
|
{-|
|
||||||
|
|
||||||
A 'Ledger' stores, for efficiency, a 'RawLedger' plus its tree of account
|
A 'Ledger' stores, for efficiency, a 'RawLedger' plus its tree of
|
||||||
names, a map from account names to 'Account's, and the display precision.
|
account names, a map from account names to 'Account's. Typically it
|
||||||
Typically it has also has had the uninteresting 'Entry's filtered out.
|
also has had uninteresting 'Entry's filtered out.
|
||||||
|
|
||||||
-}
|
-}
|
||||||
|
|
||||||
@ -80,11 +80,6 @@ subAccounts l a = map (ledgerAccount l) subacctnames
|
|||||||
subacctnames = filter (name `isAccountNamePrefixOf`) allnames
|
subacctnames = filter (name `isAccountNamePrefixOf`) allnames
|
||||||
|
|
||||||
-- | List a ledger's transactions.
|
-- | List a ledger's transactions.
|
||||||
--
|
|
||||||
-- NB this sets the amount precisions to that of the highest-precision
|
|
||||||
-- amount, to help with report output. It should perhaps be done in the
|
|
||||||
-- display functions, but those are far removed from the ledger. Keep in
|
|
||||||
-- mind if doing more arithmetic with these.
|
|
||||||
ledgerTransactions :: Ledger -> [Transaction]
|
ledgerTransactions :: Ledger -> [Transaction]
|
||||||
ledgerTransactions l = rawLedgerTransactions $ rawledger l
|
ledgerTransactions l = rawLedgerTransactions $ rawledger l
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user