Commit Graph

34 Commits

Author SHA1 Message Date
Simon Michael
7d1c01ec8a consistent lower-case aliases for working with Ledgers, and examples 2009-04-04 22:38:18 +00:00
Sergey Astanin
86fab58e6a Allow UTF8 in ledgers (account names, descriptions).
This patch fixes broken layout of some commands when there is Unicode
text in the ledger file.

I substituted System.IO functions with System.IO.UTF8. Now all strings
are Unicode internally, and take's and length's work correctly.
In particular, add, balance, hist, print and register commands seem
to work correctly; ui is still broken for me, I didn't try web.

I decode command line arguments from UTF8 forcefully, to permit
searches for accounts and descriptions with Unicode (otherwise, it
does not work).

The patch adds an additional dependency: utf8-string.

This patch does not include new test cases.
2009-05-14 20:44:06 +00:00
Simon Michael
7fba880fef prune and update balance report docs 2009-03-15 11:11:27 +00:00
Simon Michael
aaf8a0caf6 gather all balance report docs, rewrite, check with doctest 2009-03-15 05:12:47 +00:00
Simon Michael
80a0653b3e --no-total hides balance report's final total 2009-04-02 07:22:54 +00:00
Simon Michael
83b0ebf832 show the balance report's zero total when -E is used 2009-04-02 06:22:39 +00:00
Simon Michael
9203588d6d roll back additional web-related balance report filtering, breaks tests 2009-04-01 05:38:31 +00:00
Simon Michael
595a07704c filter account names again when doing balance report
for now, useful for web queries
2009-03-17 19:52:22 +00:00
Simon Michael
23dcc981d7 a new balance report implementation that passes all tests 2009-03-15 11:12:29 +00:00
Simon Michael
3343e21ab1 work towards a fix for zero-balance root account eliding 2009-01-17 18:07:20 +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
825d2ac2d4 small cleanups 2008-11-22 05:51:57 +00:00
Simon Michael
a7384a9183 show mixed amounts vertically 2008-11-22 09:07:04 +00:00
Simon Michael
27c1f06055 make --depth activate -s like ledger's -d'<=N' 2008-11-23 21:21:18 +00:00
Simon Michael
86b510917d quick --depth option, a hledger feature 2008-11-22 13:11:54 +00:00
Simon Michael
6fc8cdfe3e -n flag for balance command 2008-11-22 09:46:57 +00:00
Simon Michael
42bfc4afd9 --empty/-E flag 2008-11-22 09:39:58 +00:00
Simon Michael
cafca9425d fix selection of accounts in the balance command 2008-11-22 04:53:03 +00:00
Simon Michael
5df70bb3f4 rename --showsubs to --subtotal, like ledger 2008-10-17 16:58:09 +00:00
Simon Michael
80beac7d43 try making MixedAmount a full newtype, to avoid TypeSynonymInstances error 2008-10-18 10:38:01 +00:00
Simon Michael
c444b02349 a first cut at mixed amounts. Accounts have a MixedAmount balance, displayed on one line 2008-10-17 03:14:23 +00:00
Simon Michael
a1d10691a3 more code cleanups 2008-10-18 02:43:13 +00:00
Simon Michael
fdf4955007 fix a bug with account name eliding in balance report 2008-10-16 09:22:41 +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
aac492c746 rename amount show functions 2008-10-15 00:37:38 +00:00
Simon Michael
80ef214f79 nicer ghci/repl usage, update docs 2008-10-12 09:17:21 +00:00
Simon Michael
b9b9ce7d51 another balance report test, another step closer 2008-10-12 06:45:54 +00:00
Simon Michael
a64d320c84 a more compatible balance report, not perfect yet 2008-10-12 06:23:55 +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
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
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
67c203f316 move commands to top-level modules, make Ledger pure (except for Parse) 2008-10-10 03:32:12 +00:00