Commit Graph

759 Commits

Author SHA1 Message Date
Simon Michael
7ad7fdfb5c fix old paths in bench tests 2009-05-15 11:48:32 +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
ae69a216ac whitespace 2009-04-07 21:16:42 +00:00
Simon Michael
371f427dc4 help cleanup 2009-04-08 06:00:34 +00:00
Simon Michael
803e947a22 layout 2009-04-08 05:34:01 +00:00
Simon Michael
bedc14ee0b add new commands to help 2009-04-08 05:33:39 +00:00
Simon Michael
ed0305fb96 simplify "hours" behaviour, make it less different 2009-04-09 00:24:34 +00:00
Simon Michael
44cb0674de build with all flags in make check 2009-05-23 23:49:11 +00:00
Simon Michael
819f6709b3 disable unimplemented unicode test 2009-05-23 23:49:35 +00:00
Simon Michael
68fadbe1a7 break up comment to work around haddock bug 2009-05-23 23:44:48 +00:00
Simon Michael
b103f6a0d8 be more accurate about checking balanced amounts, don't rely on display precision 2009-05-16 22:54:12 +00:00
Sergey Astanin
92cb35bffb Some doctests for unicode input/output
Tests:
- layout of balance command
- layout of register command
- layout of print command
- search for unicode account names
- search for unicode descriptions
- error message on broken entry (currently fails)
2009-05-15 08:31:31 +00:00
Simon Michael
174eaef8b5 readme updates 2009-05-23 23:51:53 +00:00
Simon Michael
27a10bb6f7 readme 2009-04-04 00:20:15 +00:00
Simon Michael
aa220f6393 polish, docs 2009-04-08 06:23:49 +00:00
Simon Michael
8e4927edcd readme 2009-04-03 21:50:27 +00:00
Simon Michael
c5e7b12a59 add command, reads transactions interactively and adds them to the ledger 2009-04-08 05:30:26 +00:00
Simon Michael
dee37efc1c histogram command, undocumented for now 2009-04-04 11:19:51 +00:00
Simon Michael
32a3af8334 transactionamount -> postingamount 2009-04-07 21:18:51 +00:00
Simon Michael
d8fe2aabb2 drop TimeLog, it's no longer needed 2009-04-03 11:05:16 +00:00
Simon Michael
bfed30d8d1 release notes 2009-05-23 23:51:57 +00:00
Simon Michael
1227cb8fe9 notes 2009-05-23 23:52:00 +00:00
Simon Michael
2f43748d7d docs 2009-04-16 06:33:01 +00:00
Simon Michael
1e739d0c1b notes 2009-04-04 09:25:25 +00:00
Simon Michael
db89918b56 unnecessary show 2009-04-03 21:03:03 +00:00
Simon Michael
8e5640b432 notes cleanup 2009-04-03 21:02:45 +00:00
Simon Michael
1548e84aa9 add file path field to RawLedger 2009-04-08 03:40:05 +00:00
Simon Michael
b60f9187c0 refactor, moving generic io functions into Ledger.IO 2009-04-04 08:50:36 +00:00
Simon Michael
ab94a6e9a2 --uncleared option 2009-04-03 11:45:56 +00:00
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
71dd80f1b1 bump version 2009-05-23 23:53:12 +00:00
Simon Michael
b90a927fd5 version 2009-04-10 03:08:45 +00:00
Simon Michael
07b1c590ce rst formatting tweak 2009-04-02 09:50:20 +00:00
Simon Michael
c5608b96c7 trim ui help message for small windows 2009-04-02 21:02:07 +00:00
Simon Michael
4d3a514eba fix pre-release check 2009-04-02 21:03:32 +00:00
Simon Michael
3c1d3a6d7f simplify: drop the ansi ui, and enable the vty ui by default
If what I'm hearing is correct, cabal on windows will turn off the vty
flag automatically. The alternative ansi ui is not worth the hassle.
2009-04-03 04:17:48 +00:00
Simon Michael
938abfbbfa docs polish 2009-04-02 23:02:12 +00:00
Simon Michael
f1e193aef1 polish 2009-04-03 05:58:14 +00:00
Simon Michael
410b759086 drop 4th ui screen for consistency 2009-04-02 21:01:57 +00:00
Simon Michael
f5671878fc fix misformatted urls in haddock 2009-04-02 21:02:27 +00:00
Simon Michael
bd09d693f3 bump version 2009-04-03 06:08:39 +00:00