Simon Michael
0f1cbef9a8
namegeddon! conform to new terminology in ledger 3, more or less
...
This renames RawTransaction -> Posting and Entry -> LedgerTransaction,
plus a bunch more cleanups for consistency. So while ledger 3 has
transactions containing postings, and so do we when speaking to users,
internally we call ledger 3's transactions LedgerTransaction, and we keep
our old Transaction type as well, because it's useful and used all over
the place. To review:
- ledger 2 had Entrys containing Transactions.
- hledger 0.4 had Entrys containing RawTransactions, and Transactions
which are a RawTransaction with its parent Entry's info added.
Transactions are what we most work with when reporting and are
ubiquitous in the code and docs.
- ledger 3 has Transactions containing Postings.
- hledger 0.5 now has LedgerTransactions containing Postings, with
Transactions kept as before (a Posting plus it's parent's info). These
could be named PartialTransactions or TransactionPostings, but it gets
too verbose and obscure for devs and users.
2009-04-03 10:58:05 +00:00
Simon Michael
1fc9db3af5
individual transactions now have a cleared status
2009-01-23 00:14:12 +00:00
Simon Michael
3bc2d903b2
move the big limit into depthFromOpts
2009-03-15 11:09:49 +00:00
Simon Michael
7521992e85
register command sorts transactions by date
...
(unlike ledger)
2009-04-02 04:42:10 +00:00
Simon Michael
743242698f
restore transaction-aggregating (rather than filtering) in register --depth when there is a reporting interval
2009-04-02 09:36:24 +00:00
Simon Michael
7ba0dc06a5
test and fix for register --depth
2009-04-02 02:52:23 +00:00
Simon Michael
1fc9d47bd8
make -E work in register report
2009-03-17 19:56:05 +00:00
Simon Michael
6f6ce11ca8
more balance-calculating extraction
2008-12-05 08:26:13 +00:00
Simon Michael
eca112f7d4
extract common balance-calculating code
2008-12-05 05:09:54 +00:00
Simon Michael
b1f2d95e13
optimise summariseTransactionsInDateSpan like cacheLedger
...
makes summarised register reports faster
2008-12-05 03:32:41 +00:00
Simon Michael
63999d36fe
allow --depth=0 in summarised register reports, to aggregate top-level accounts
2008-12-04 20:37:03 +00:00
Simon Michael
3c90a41ffa
typo
2008-12-06 07:11:28 +00:00
Simon Michael
b9bee776b5
fix register totals when using --display
2009-01-17 20:00:45 +00:00
Simon Michael
5e9f9e530a
better register summarising with --depth and -E support, datespan splitting bugfix
2008-12-04 19:29:29 +00:00
Simon Michael
41a3fb91d5
support reporting intervals in period expressions and register report, and -W/-M/-D
2008-12-03 23:20:38 +00:00
Simon Michael
630e22312b
remove DateTime and Date types, use Day and UTCTime directly
...
This seems simplest for now, I might bring type synonyms back later.
2008-11-27 04:01:07 +00:00
Simon Michael
dc007e69a5
--options-anywhere to use ^ for negative patterns and permit options anywhere in command-line
2008-11-25 19:29:33 +00:00
Simon Michael
0582046648
preliminary --display/-d support (-d "d>DATE", sufficient for reconciling)
2008-11-24 21:51:31 +00:00
Simon Michael
a7384a9183
show mixed amounts vertically
2008-11-22 09:07:04 +00:00
Simon Michael
54b164a7ab
nullamt and nullmixedamt
2008-11-22 17:21:49 +00:00
tim
514f015849
Implemented types for dates and datetimes
...
This patch replaces the strings used in the Entry, TimeLogEntry, and Transaction
records with real types. Rather than use the inbuild system date and time types
directly, two custom types have been implemented that wrap UTCTime: Date and
DateTime. A minimal API for these has been added.
2008-11-11 12:34:05 +00:00
Simon Michael
47cf7c3eb6
gather match functions in one place
2008-11-22 05:48:56 +00:00
Simon Michael
648887b36f
use MixedAmount everywhere. seems to work.
2008-10-18 08:39:08 +00:00
Simon Michael
a304ad3ca6
and more code cleanups.
2008-10-18 04:15:43 +00:00
Simon Michael
0eb56821e9
fix register report and add a test
2008-10-18 03:19:50 +00:00
Simon Michael
a1d10691a3
more code cleanups
2008-10-18 02:43:13 +00:00
Simon Michael
628c4241f3
omit transactions with zero amount from register report
2008-10-16 06:53:08 +00:00
Simon Michael
dce8fd0dde
parse virtual and balanced virtual transactions, refactor register and transaction output
2008-10-16 06:00:46 +00:00
Simon Michael
18e3e4d34b
simplify
2008-10-15 21:11:06 +00:00
Simon Michael
5fcab59414
support negative patterns and ledger's special balance report account matching rule
2008-10-15 17:04:47 +00:00
Simon Michael
1e3291af48
focus on tests in Tests.hs, clean up
2008-10-15 06:32:52 +00:00
Simon Michael
aac492c746
rename amount show functions
2008-10-15 00:37:38 +00:00
Simon Michael
4efdda25b4
replace Currency with a more flexible, ledger-style Commodity
2008-10-12 21:52:48 +00:00
Simon Michael
80ef214f79
nicer ghci/repl usage, update docs
2008-10-12 09:17:21 +00:00
Simon Michael
ce3eeb80b6
consolidate register command code, make it do filtering
2008-10-12 07:34:00 +00:00
Simon Michael
37e75d610e
more tests cleanup.. prepare for per-module tests, but consolidate in Tests where I think we will stay
2008-10-10 08:16:55 +00:00
Simon Michael
67c203f316
move commands to top-level modules, make Ledger pure (except for Parse)
2008-10-10 03:32:12 +00:00