Commit Graph

254 Commits

Author SHA1 Message Date
Simon Michael
e1b1b8bce8 rename Matcher to Query, simplify constructors 2012-05-16 07:12:49 +00:00
Simon Michael
8c7eea9ee0 make incomestatement respect options 2012-04-16 16:45:24 +00:00
Simon Michael
b4b2b67236 incomestatement: show revenue and expense accounts separately 2012-04-15 00:05:10 +00:00
Simon Michael
a27eb7c29f more matcher -> query renaming 2012-05-16 07:37:24 +00:00
Simon Michael
a7ef0ba8dd basic understanding of balance sheet vs. profit & loss accounts 2012-04-14 01:12:42 +00:00
Simon Michael
51977f32e9 Journal.hs explicit exports, haddockification 2012-04-13 22:24:55 +00:00
Simon Michael
04dc5aed10 explicit imports for Matching 2012-05-16 06:43:13 +00:00
Simon Michael
43d78398bb Hledger.Data.Matching -> Hledger.Data.Query 2012-05-16 06:50:08 +00:00
Simon Michael
8492f6cae4 fix unicode handling on GHC >= 7.2, unify utf8 IO compatibility layer
tests pass again from GHC 6.12.3 to 7.4.1
2012-03-29 19:06:31 +00:00
Simon Michael
d4451ce5e3 read system cleanup, require conversion rules from a file to simplify API 2012-03-24 18:08:11 +00:00
Simon Michael
00a43cd1bf Hledger.Cli.Format -> Hledger.Data.FormatStrings 2012-03-10 19:20:15 +00:00
Simon Michael
e396c0dc8d push csv rule and format string types down 2012-03-24 01:58:34 +00:00
Simon Michael
fdb3677129 try only as many data readers as needed for a successful read 2012-03-23 17:13:30 +00:00
Simon Michael
6eb7ad28e1 refactor/beef up readJournal/readJournalFile 2012-03-23 16:21:41 +00:00
Simon Michael
4d7a809c4a cleanups and early code for csv reader based on convert 2012-03-10 21:55:48 +00:00
Simon Michael
2e8cf1c7f2 reader code cleanups 2012-03-10 18:13:32 +00:00
Simon Michael
120a9fd0e1 docs: readJournalFile haddock fix 2012-03-11 21:36:02 +00:00
Simon Michael
9bdb170a0a inferred amounts use the cost commodity if known, like ledger (#69) 2012-01-03 08:15:48 +00:00
Simon Michael
470155dc63 docs: I don't think journalCanonicaliseAmounts affects price amounts 2012-01-03 08:17:04 +00:00
Simon Michael
41c1fa636a parsing: -B/--cost now ignores P historical prices, like ledger 2012-01-22 20:39:11 +00:00
Simon Michael
1bc4d4b395 refactor: clarify mixed amount normalising a bit 2012-01-01 00:39:13 +00:00
Simon Michael
381ebea35c show correct line number for posting parse errors (#67) 2011-10-04 23:39:53 +00:00
Simon Michael
3e3475bd76 web: fix "not:'multi word'" patterns 2011-09-21 00:28:32 +00:00
Simon Michael
de502e732b drop unused TIMELOG env var 2011-09-21 23:12:53 +00:00
Simon Michael
556e3c9246 cli: give literal tilde error also with -f 2011-09-21 23:10:44 +00:00
Simon Michael
f5eecc34a3 cli: give a non-confusing error when literal tilde found in LEDGER_FILE 2011-09-21 22:58:47 +00:00
Simon Michael
f79b272ff3 balance: ledger compatibility fix: don't elide parent accounts with multiple displayed subaccounts 2011-09-22 20:40:06 +00:00
Simon Michael
c22e4e85d0 register: be better at showing empty intervals with --empty and a query pattern 2011-09-23 00:09:39 +00:00
Simon Michael
14881d0515 add: trim whitespace in auto-created journal 2011-09-26 20:56:01 +00:00
Simon Michael
5ccfb9cf7a note the use of unix line endings on all platforms (#51) 2011-09-27 20:55:48 +00:00
Simon Michael
9b2a5f56e1 only the add and web commands auto-create the journal file 2011-09-23 03:53:14 +00:00
Simon Michael
35f3a4fa00 print, web: always show both dates, ignoring --effective (#42)
Ledger shows only the effective date with --effective, but not vice versa.
print is supposed to be information-preserving so this seems better.
This also fixes the web entries view.
2011-09-23 14:50:20 +00:00
Simon Michael
9a0a0be01c docs: whitespace 2011-09-23 14:27:26 +00:00
Simon Michael
1de9cc1d80 fix a regression balancing a transaction containing different prices
And try to clarify amount arithmetic a bit more. More to come I expect.
2011-09-03 21:27:37 +00:00
Simon Michael
6142847dd2 web: fix wrong transaction amount in account register with virtual postings 2011-09-10 20:05:21 +00:00
Simon Michael
8521c07df7 assertParseFailure 2011-05-31 19:48:55 +00:00
Simon Michael
8d62452260 parsing: historical price directives may contain a numeric time zone, like ledger; note that the time is ignored 2011-06-01 01:50:04 +00:00
Simon Michael
946e5ffcbc parsing: parse time of day more carefully 2011-05-31 22:45:54 +00:00
Simon Michael
1f24e025da parsing: make bad date parse error more reliable 2011-05-31 19:49:37 +00:00
Simon Michael
35dcda9e8b fix case insensitivity of command-line filter patterns 2011-06-08 21:52:10 +00:00
Simon Michael
238594d976 type signature for nullposting so tags can find it 2011-06-13 20:59:13 +00:00
Simon Michael
4e9c09fb87 refactor 2011-06-14 14:27:48 +00:00
Simon Michael
4228c901e8 change nulldate 2011-06-14 19:10:16 +00:00
Simon Michael
e36616999d haddock correction: entry is a synonym for transaction, not posting 2011-06-17 18:18:03 +00:00
Simon Michael
92777edc99 docs: haddock tweaks 2011-04-29 03:25:52 +00:00
Simon Michael
287eb6bd00 refactor: drop dropws 2011-07-15 21:58:20 +00:00
Simon Michael
2aedd32690 journalAccountNamesUsed should be sorted 2011-07-17 15:54:21 +00:00
Simon Michael
f2171c1e02 choice' haddock 2011-07-17 17:16:40 +00:00
Simon Michael
9db32e0f60 haddock fix 2011-07-17 23:14:51 +00:00
Simon Michael
55033b6e79 mkdatespan haddock 2011-07-17 15:54:58 +00:00
Simon Michael
a44aa8d7d2 refactor: remove unnecessary LANGUAGE CPP pragmas 2011-07-17 23:29:57 +00:00
Simon Michael
47a9564bdb showJournalDebug 2011-08-02 23:27:41 +00:00
Simon Michael
3364d344d1 refactor: simplify matchers, dropping sense argument 2011-08-07 15:31:00 +00:00
Simon Michael
68c2d0f513 fix matcher parse tests 2011-06-13 21:12:35 +00:00
Simon Michael
789be240b6 fix edate: matcher, should match actual date if no effective date defined 2011-07-01 17:20:04 +00:00
Simon Michael
77ca58269a misc helpers 2011-08-07 15:31:36 +00:00
Simon Michael
b783f25fa8 type signature 2011-08-07 22:29:47 +00:00
Simon Michael
20a45c538d also export trace from Hledger.Utils 2011-08-08 01:34:00 +00:00
Simon Michael
fd13689339 missing type signatures 2011-08-08 01:34:21 +00:00
Simon Michael
0cb0c61fcb fix partial isSingleQuoted/isDoubleQuoted functions 2011-08-14 22:38:51 +00:00
Simon Michael
c24609f468 refactor fixSmartDate* 2011-08-14 22:39:48 +00:00
Simon Michael
931c64221e more useful parse error from fixSmartDateStr 2011-08-08 01:34:43 +00:00
Simon Michael
666218dd62 more quoted string splitting/joining utils 2011-08-15 13:58:16 +00:00
Simon Michael
cbb0fc5c59 move basic reports into hledger-lib 2011-08-15 22:59:06 +00:00
Simon Michael
68f13e18af amount haddock updates 2011-08-31 17:22:53 +00:00
Simon Michael
676845b269 trim even more fat from amounts 2011-08-31 17:44:20 +00:00
Simon Michael
06e224dc4a haddock updates 2011-08-31 17:44:31 +00:00
Dmitry Astapov
2c01541de1 Fix for auto-balancing transactions which have negative amount in the first posting 2011-04-24 22:10:33 +00:00
Simon Michael
b32ee2fa04 fix/rename convertMixedAmountToCommodity, yay release tests 2011-09-02 00:42:41 +00:00
Simon Michael
10fd7ebc42 simplify amounts code, make tests pass 2011-08-31 16:54:10 +00:00
Simon Michael
1273f02a9a more balance/amount clarifications and a test 2011-08-30 11:37:36 +00:00
Simon Michael
059825a9b2 optionsgeddon.. port to cmdargs and a fully modal cli 2011-08-15 22:50:09 +00:00
Simon Michael
47b1142d49 move reports back to Hledger.Cli for now, forgot they still depend on cli options 2011-07-18 23:30:40 +00:00
Simon Michael
e4c4405c62 refactor: simplify some imports 2011-07-17 23:05:56 +00:00
Simon Michael
848a081d29 report haddocks 2011-07-18 00:21:13 +00:00
Simon Michael
df7dc1464e refactor: move basic report generation to hledger-lib 2011-07-17 23:47:52 +00:00
Simon Michael
35f145f03d web: 1. move templates back into main code 2. begin adding content titles 2011-07-01 20:37:48 +00:00
Simon Michael
3dccfcad68 web: show account+subs by default 2011-07-01 00:32:09 +00:00
Simon Michael
05cd38458b web: fix inacctsonly: with spaces 2011-06-24 19:15:00 +00:00
Simon Michael
4bb0f2efbd web: "empty:" to select postings with zero or non-zero amount 2011-06-29 00:53:31 +00:00
Simon Michael
6b92997487 web: "real:1" to select real postings (or transactions with real postings) 2011-06-29 00:31:37 +00:00
Simon Michael
11409bb834 web: "status:" to filter by cleared status 2011-06-28 23:18:36 +00:00
Simon Michael
8d0b42e1d5 web: an "a" parameter specifies a query expression for filtering the accounts sidebar
Useful for ui experiments, at least
2011-06-28 22:34:45 +00:00
Simon Michael
d343614690 web: "inacctsonly:" narrows the sidebar to current account and subs 2011-06-24 18:52:40 +00:00
Simon Michael
d5ab811796 web: inacctsubs: -> inaccts: 2011-06-14 19:21:22 +00:00
Simon Michael
d35fbac422 web: inacctsubs: includes subs in an account register, with confusing balance 2011-06-14 14:29:31 +00:00
Simon Michael
94208e44d5 fix that silly pattern warning 2011-06-13 21:16:10 +00:00
Simon Michael
0c216cb2cd distinguish query search criteria (like acct:) and query options (like inacct:) 2011-06-13 19:46:35 +00:00
Simon Michael
06331c71a8 account register balance not right.. more fixes and plans 2011-06-12 22:35:54 +00:00
Simon Michael
94709e5139 preliminary single-account register report 2011-06-11 16:11:38 +00:00
Simon Michael
d2e6b8cbae query parser fixes, add date: and edate: matching 2011-06-12 18:30:18 +00:00
Simon Michael
957c349780 --alias command-line option 2011-08-05 00:05:39 +00:00
Simon Michael
30b7448f45 parsing: alias/end aliases directives, like ledger's but a bit more powerful 2011-08-04 08:45:18 +00:00
Simon Michael
4015e02097 account directive should preserve virtual/balanced virtual posting type 2011-08-02 23:29:13 +00:00
Simon Michael
345c2343b6 refactor ledgerDirective 2011-08-04 07:49:10 +00:00
Johann Klähn
8e7d20e4d5 parsing: support pop as well as end tag 2011-05-31 17:41:12 +00:00
Simon Michael
75f0886ad4 parsing: make the leading ! in directives optional, like ledger 2011-08-02 23:28:53 +00:00
Simon Michael
d4545966b5 amount code, test cleanups 2011-08-31 00:40:21 +00:00
Simon Michael
379184fd31 Amount haddock & code cleanups 2011-08-30 13:16:30 +00:00
Trygve Laugstol
28dbb8864f Adding basic ledger FORMAT parser. 2011-06-20 21:33:26 +00:00