Commit Graph

174 Commits

Author SHA1 Message Date
Simon Michael
1e3291af48 focus on tests in Tests.hs, clean up 2008-10-15 06:32:52 +00:00
Simon Michael
7a69efec70 match full account name when (any) account pattern contains :, as ledger seems to 2008-10-15 06:32:42 +00:00
Simon Michael
042a8179e8 always give a proper parse error for numbers, remember precisions and thousands separators
(per amount for now)
2008-10-14 23:14:31 +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
01cd388c24 remove dead code, simplify cacheLedger again 2008-10-12 07:46:54 +00:00
Simon Michael
b9b9ce7d51 another balance report test, another step closer 2008-10-12 06:45:54 +00:00
Simon Michael
220b688082 another test 2008-10-12 05:09:01 +00:00
Simon Michael
d7db5660b9 perhaps getting closer to a ledger-compatible balance report. A wretched, wretched thing. 2008-10-11 04:23:49 +00:00
Simon Michael
2cef939da1 rename accounts/filteraccounts fields to accountmap/filteraccountmap 2008-10-10 22:28:10 +00:00
Simon Michael
9dc9c9dd76 remove dead code, rename function 2008-10-10 12:04:20 +00:00
Simon Michael
a30154b401 pruneBoringBranches again, a test, and fix hiding of zero-balance leaf accounts 2008-10-10 11:55:12 +00:00
Simon Michael
19fbe17ff4 test labels 2008-10-10 11:12:54 +00:00
Simon Michael
77b7de1b5f add four (failing) tests for balance report 2008-10-10 10:05:12 +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
d98643a364 tests cleanup 2008-10-10 07:39:20 +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
Simon Michael
73c49ec060 reduce unnecessary imports 2008-10-10 02:19:53 +00:00
Simon Michael
11342db662 simplify filtering, make cacheLedger store filtered data as well, make balance reports work a little better 2008-10-09 13:02:26 +00:00
Simon Michael
fa1b4bdfa2 rename parseError, parsePatternArgs, fix a bug 2008-10-08 18:02:34 +00:00
Simon Michael
91802391a1 um.. refactor option handling, filtering, and support -b/-e date filtering options 2008-10-08 17:00:22 +00:00
Simon Michael
b0e8286411 name hunit tests 2008-10-03 10:23:02 +00:00
Simon Michael
cf194e6b60 rename showLedgerAccounts to showLedgerAccountBalances 2008-10-03 07:47:36 +00:00
Simon Michael
a7b1269d86 define Ledger's exports 2008-10-03 07:38:46 +00:00
Simon Michael
e5834ffe2f minor cleanups.. time to go 2008-10-03 03:38:33 +00:00
Simon Michael
3aa656ba69 rename LedgerEntry to Entry 2008-10-03 02:37:19 +00:00
Simon Michael
b19fe33476 replace Models with a top-level Ledger module 2008-10-03 01:14:16 +00:00
Simon Michael
c699b979f8 move the rest of the core code to the Ledger package 2008-10-03 00:40:06 +00:00
Simon Michael
627f78a730 first step towards a library, move Utils to Ledger.Utils 2008-10-03 00:05:16 +00:00
Simon Michael
99358f207b rename LedgerTransaction to RawTransaction 2008-10-02 23:55:01 +00:00
Simon Michael
f4b4fc98fe rename LedgerFile to RawLedger 2008-10-02 22:17:04 +00:00
Simon Michael
8b117e1581 more ledger-handling-functions cleanup 2008-10-01 12:48:52 +00:00
Simon Michael
8c6d93701b try to simplify FilterPatterns a bit 2008-10-01 11:08:30 +00:00
Simon Michael
0eceeb5542 basic support for a comments-preserving print command.
Preserves most inter-entry comment lines and whitespace (but not yet a
comment immediately after an entry, or whitespace/comments after the last
entry.) Whitespace and comment lines are stored as part of the following
entry. Lines after the last entry are stored as an extra ledger file field.
Inspired by Nafai on #ledger.
2008-06-28 04:44:33 +00:00
Simon Michael
e08b2c1ea6 remove unused functions 2007-07-11 08:24:32 +00:00
Simon Michael
d52b365fa0 combine patterns into single regexps, fix a bug with print & patterns 2007-07-11 06:58:47 +00:00
Simon Michael
ce0d4ec85a clean up account/description pattern handling 2007-07-11 05:46:20 +00:00
Simon Michael
2b608a6c9c remove obsolete code, cleanups 2007-07-09 18:54:41 +00:00
Simon Michael
ec1b5b9bce balance: combine boring account names properly when matching account patterns 2007-07-07 18:26:28 +00:00
Simon Michael
6dc6186c0d save and print entry and transaction comments 2007-07-04 12:05:54 +00:00
Simon Michael
a1b060f4cf renamed types: RawLedger, Entry, Transaction, EntryTransaction -> LedgerFile, LedgerEntry, LedgerTransaction, Transaction 2007-07-04 09:51:37 +00:00
Simon Michael
f0ec7b08a3 track amount precision, and use the highest precision found for display; parsing fixes 2007-07-04 01:38:56 +00:00
Simon Michael
a266a9b2e0 show numbers with thousands separator 2007-07-03 19:01:13 +00:00
Simon Michael
0445086286 tests cleanup 2007-07-03 18:20:45 +00:00
Simon Michael
255e061e6f fix non-display of single-child accounts when balance report depth is restricted, test support 2007-07-03 17:25:16 +00:00
Simon Michael
d760acc85e speed, cleanup 2007-07-03 08:46:39 +00:00
Simon Michael
362d3831ea rename ledger functions 2007-07-02 19:39:34 +00:00
Simon Michael
bd84e95f5e rename Ledger -> RawLedger, CachedLedger -> Ledger 2007-07-02 19:15:39 +00:00
Simon Michael
df55743697 CachedLedger 2007-07-02 18:57:37 +00:00
Simon Michael
23cb79e1f9 amount/currency updates 2007-03-12 17:53:39 +00:00
Simon Michael
2b696b8f0d define/run tests anywhere 2007-03-12 09:38:02 +00:00
Simon Michael
510d39095c big overhaul of options, support -f-, rudimentary timelog file handling 2007-03-12 07:40:33 +00:00
Simon Michael
d3c286d8b7 beginnings of timelog parsing 2007-03-12 00:13:53 +00:00
Simon Michael
de4dd43007 balance: elide boring accounts properly, cleanup 2007-03-11 00:55:53 +00:00
Simon Michael
dabc30e115 more small stuff 2007-03-09 23:32:00 +00:00
Simon Michael
1322bcb4a0 refactor, fix balance report 2007-02-16 11:51:30 +00:00
Simon Michael
ba40fbf733 reorg, split types into separate modules 2007-02-16 09:00:17 +00:00
Simon Michael
7b32caa0aa balance report, refactoring .. not finished but feeling paranoid about systems today\! 2007-02-15 02:08:18 +00:00
Simon Michael
3c20b0941f cleanup 2007-02-13 04:06:26 +00:00
Simon Michael
edbedab32c ledger-style account and description regexp matching 2007-02-13 03:48:16 +00:00
Simon Michael
7e38481f8b tweak data model, cleanups, show entry details only once per entry 2007-02-13 01:03:12 +00:00
Simon Michael
98c9ef538b test cleanups 2007-02-10 23:32:45 +00:00
Simon Michael
948f20a33e typo 2007-02-10 23:27:44 +00:00
Simon Michael
6bf13fb262 much refactoring, get quickcheck working, beginnings of account matching 2007-02-10 23:24:33 +00:00
Simon Michael
080d567f15 Types -> Models 2007-02-10 23:10:04 +00:00
Simon Michael
db52c7d0e5 tests cleanup 2007-02-10 19:16:56 +00:00
Simon Michael
30fe7ac225 cleanup 2007-02-10 17:36:50 +00:00
Simon Michael
e5cf68bf0f sample Ledger for testing, get account list from a ledger 2007-02-10 05:09:42 +00:00
Simon Michael
cf953b442d register report now has layout, auto-fills missing transaction amounts and shows the running balance 2007-02-09 15:54:18 +00:00
Simon Michael
44e302557f better register layout 2007-02-09 09:58:11 +00:00
Simon Michael
cda849fbff test cleanup 2007-02-09 08:27:35 +00:00
Simon Michael
3751a91c60 cleanup 2007-02-09 03:32:07 +00:00
Simon Michael
2e8665a4d6 working test framework 2007-02-09 03:17:12 +00:00
Simon Michael
1fa5e09dfd split into modules 2007-02-09 01:23:12 +00:00