Commit Graph

15 Commits

Author SHA1 Message Date
Simon Michael
522a1f4c2a when adding, the balancing amount is a more useful default 2009-04-16 05:45:06 +00:00
Simon Michael
18e9f826d6 remove a haddock-troubling comment from AddCommand 2009-05-15 10:16:41 +00:00
Simon Michael
6ad88274a5 comment 2009-05-16 20:51:34 +00:00
Simon Michael
e2d14aebb7 try to make the add command a bit more usable 2009-05-23 22:16:29 +00:00
Simon Michael
c0c9c7a070 be direct! 2009-04-08 08:57:05 +00:00
Simon Michael
29d9aed845 refactor getPostings 2009-04-16 05:33:51 +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
412a39b4aa add: show and set defaults from similar past transactions; allow description arguments 2009-04-10 13:53:23 +00:00
Simon Michael
7c155b7d1d refactor add command, more validation 2009-04-10 08:31:43 +00:00
Simon Michael
90cf39cc09 fix add doctests 2009-05-23 23:42:51 +00:00
Simon Michael
ace0d7fe79 input validation for the add command, and some doctests 2009-04-10 07:10:21 +00:00
Simon Michael
c521dc0bc2 validate added transaction before writing to file 2009-04-08 06:01:16 +00:00
Simon Michael
393e7d98d4 convert command for transforming bank CSV exports to ledger format 2009-04-10 03:10:58 +00:00
Simon Michael
aa220f6393 polish, docs 2009-04-08 06:23:49 +00:00
Simon Michael
c5e7b12a59 add command, reads transactions interactively and adds them to the ledger 2009-04-08 05:30:26 +00:00