Commit Graph

151 Commits

Author SHA1 Message Date
Simon Michael
0734da2bbe chart: handle positive/negative balances better; tune defaults
Mixed positive and negative balances were confusing things. Now, the chart
will omit any balances which do not match the sign of the first balance.
Various other size/font/colour tweaks. 

Charts are now red for positive balances (like expense accounts) and green
for negative balances (like income accounts). This is fun, but falls down
for eg assets and liabilities.. better ideas welcome.
2010-02-06 21:45:41 +00:00
Simon Michael
160f8dc5b8 chart: show top 10 (or --items N) accounts, sorted by amount 2010-02-05 01:18:51 +00:00
Simon Michael
a2b8faa4d6 big refactoring, do filtering afresh in each command
We now do data filtering/massage as late as possible, not just once at
startup. This should work better for multiple commands, as with web or ui.
The basic benchmark seems at least as good as before thanks to laziness.
2009-12-21 05:23:07 +00:00
Roman Cheplyaka
e96350c3f1 New command 'chart': generate balances pie chart 2009-09-26 22:53:54 +00:00
marko.kocic
cca81d199f Hlint: Error: Use better pragmas 2009-09-22 12:22:44 +00:00
marko.kocic
d6393f5f63 Hlint: Warning: Use list comprehension 2009-09-23 09:45:39 +00:00
marko.kocic
1690de8d00 Hlint: Warning: Use string literal 2009-09-23 09:56:17 +00:00
Simon Michael
d8ec35a8ce additional cleanup following hlint use-string-literal 2009-09-23 17:39:38 +00:00
marko.kocic
4407b6c59d Hlint: Warning: Use if 2009-09-23 09:29:31 +00:00
Simon Michael
8a98b83286 web: rename -fhapps flag to -fweb 2009-11-28 15:37:56 +00:00
Simon Michael
a1de72bea5 misc doc updates 2009-07-14 21:51:10 +00:00
Simon Michael
1c8a0aed08 convert: find/create the rules file automatically, allow comment lines 2009-12-03 23:34:23 +00:00
Simon Michael
2607082e9e convert: new rules file format, more docs 2009-12-03 20:54:20 +00:00
marko.kocic
b197693197 Hlint: Warning: Redundant brackets 2009-09-22 16:51:27 +00:00
Simon Michael
5939a93d95 --debug implies --verbose 2009-08-12 09:07:56 +00:00
marko.kocic
8fdd28d446 Hlint: Error: Redundant $ 2009-09-22 11:55:11 +00:00
marko.kocic
ddc176d83e Hlint: Warning: Eta reduce 2009-09-22 15:56:59 +00:00
Simon Michael
6fb1804cfd refactor IOArgs -> FilterSpec and make haddock happy 2009-07-09 20:25:50 +00:00
Simon Michael
a8bfb06da4 refactor effective date support, fix warnings 2009-07-09 19:22:27 +00:00
Simon Michael
06eb2a9aa8 --effective option uses transactions' effective dates, if any 2009-07-08 23:37:44 +00:00
Simon Michael
cb8ea69dfc fix warnings all over - hledger is now -W-clean 2009-06-05 09:44:20 +00:00
Simon Michael
e91560989c drop regex-compat/regex-posix dependency 2009-06-03 23:19:47 +00:00
Simon Michael
dc3be35eef fix a silly failure to open ledger file paths containing ~
And drop a misconception: there's no need to tilde-expand paths in command
line arguments. Just the hard-coded ones.
2009-06-05 05:03:10 +00:00
Simon Michael
c936e90a54 add a --binary-filename option and "make pushbinary" for easy publishing
Also note that we don't yet follow cabal package versioning policy.
2009-06-05 02:07:38 +00:00
Simon Michael
4517cab686 new "stats" command, like my old ledgerstats 2009-05-29 10:05:09 +00:00
Simon Michael
8ba2163ccd --quarterly option 2009-04-03 11:55:48 +00:00
Simon Michael
7637a40df7 simpler parsePatternArgs 2009-04-04 09:14:04 +00:00
Simon Michael
8162fc6f89 make hours just like hledger, aside from the choice of file 2009-05-15 12:11:56 +00:00
Simon Michael
287c51e5ba polish 2009-04-10 00:25:28 +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
393e7d98d4 convert command for transforming bank CSV exports to ledger format 2009-04-10 03:10:58 +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
aa220f6393 polish, docs 2009-04-08 06:23:49 +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
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
3bc2d903b2 move the big limit into depthFromOpts 2009-03-15 11:09:49 +00:00
Simon Michael
2b803b4558 drop the ansi command, make the ui command use ansi if vty is not available 2009-04-02 00:24:38 +00:00
Simon Michael
c2352c3c64 localise the single use of regexpr 2009-04-02 01:28:36 +00:00
Simon Michael
80a0653b3e --no-total hides balance report's final total 2009-04-02 07:22:54 +00:00
Simon Michael
d853892c42 options, docs, and notes cleanup 2009-04-02 07:22:04 +00:00
Simon Michael
4a7a724f0a a --debug option, not hooked up to anything yet 2009-03-15 06:15:58 +00:00
Simon Michael
44cbed59cb use longer but standard and clearer getCurrentTime/Day 2009-01-24 19:48:37 +00:00
Simon Michael
f5e9a8ec79 docs 2009-02-27 04:03:14 +00:00
Simon Michael
7f18b50e50 rename the happs command to "web" 2009-01-25 11:48:49 +00:00
Simon Michael
46c09c6fac patterns now use not: and desc: prefixes instead of ^ and ^^
This is more like but not the same as ledger 3.
2009-04-02 06:25:22 +00:00