Commit Graph

152 Commits

Author SHA1 Message Date
Simon Michael
d7d08354ae cleanups 2009-01-25 12:52:28 +00:00
Simon Michael
ae5a9439d0 count time elapsed in open timelog entries, ignore time zone
Any open sessions in a timelog will be considered clocked out as of the
current time, and included in calculations. Also, contrary to the earlier
patch we now ignore timezone everywhere and deal only with local times.
This might need revisiting eg to track time while crossing timezones.
2009-01-25 07:06:59 +00:00
Simon Michael
44cbed59cb use longer but standard and clearer getCurrentTime/Day 2009-01-24 19:48:37 +00:00
Simon Michael
b0178b88cc make prepareLedger use current time, not just date 2009-01-24 18:48:28 +00:00
Simon Michael
7f18b50e50 rename the happs command to "web" 2009-01-25 11:48:49 +00:00
Simon Michael
c0885f7c76 another iteration of the version number system; simpler and more efficient
The release version is defined in VERSION, make or make release do the rest.
2009-02-27 02:55:54 +00:00
Simon Michael
ea0c32641d minimal happs-based web ui, enabled with -f happs 2009-01-20 04:04:40 +00:00
Simon Michael
e361b789a0 simple ansi-based ui that should work on windows, enabled with -f ansi 2009-01-20 04:02:21 +00:00
Simon Michael
15239ecf96 make an explicit configure flag for the vty ui 2009-01-20 03:48:05 +00:00
Simon Michael
67a764dce7 need to omit the vty dependency and ui command on windows 2009-01-18 19:02:08 +00:00
Simon Michael
8dcd53c9ba clean up version string and include configure flags 2009-01-20 05:57:25 +00:00
Simon Michael
59d110e0a8 fix reading from stdin, except for ui command 2009-01-17 19:23:21 +00:00
Simon Michael
a51596899f a cached ledger now includes the full ledger text, also.
This reads the file twice, since I couldn't figure out how to do it just
once with the new error monad.. fixes welcome.
2008-12-10 07:29:08 +00:00
Simon Michael
1c969b5744 clean up ledger loading utilities 2008-12-05 08:51:14 +00:00
nick
e68a72b072 Handle ledger parse errors 2008-12-09 21:00:46 +00:00
Simon Michael
ae9636e55c refactor ledger preparation 2008-11-29 20:00:21 +00:00
Simon Michael
dd040f9ca2 a simple interactive text ui
Lets you navigate around the balance, register, print reports and the raw
ledger, and drill down on a single account. Adds a dependency on vty.
2008-12-08 17:27:16 +00:00
Simon Michael
b4bdc926dd readme updates 2009-01-17 21:03:34 +00:00
Simon Michael
57c31f5ab0 support basic --period expressions, containing a single smart date 2008-11-27 06:29:29 +00:00
Simon Michael
d25995c1c8 refactor with DateSpan 2008-11-27 04:31:01 +00:00
Simon Michael
6c88197c6a do IO date parsing up front, and support (english) month names 2008-11-26 04:04:05 +00:00
Simon Michael
1c60514973 tighten up date parsing, make it io-friendly and parse Y, M/D, D 2008-11-25 23:52:42 +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
565feb594e add a --verbose/-v flag, use it to show more test-running detail 2008-11-22 04:49:00 +00:00
Simon Michael
37a79ba415 update README, cabal file, hledger.hs 2008-11-23 22:04:40 +00:00
Simon Michael
cefc315900 update README 2008-11-23 21:49:57 +00:00
Simon Michael
52ff46a326 --basis/-B flag, to show all priced amounts on cost basis. Also a --cost alias. 2008-11-22 20:35:17 +00:00
Simon Michael
7819abd80f detect precisions from the whole ledger, not just the filtered part 2008-11-22 09:22:55 +00:00
Simon Michael
fcdc4dc273 use smart dates for -b and -e 2008-11-22 12:37:55 +00:00
Simon Michael
c46189a75b filter by account patterns when caching a ledger, fix balance report totals 2008-11-22 05:51:48 +00:00
Simon Michael
ea5a87815b rename setAmountDisplayPrefs to canonicaliseAmounts 2008-11-08 22:02:38 +00:00
tim
514f015849 Implemented types for dates and datetimes
This patch replaces the strings used in the Entry, TimeLogEntry, and Transaction
records with real types. Rather than use the inbuild system date and time types
directly, two custom types have been implemented that wrap UTCTime: Date and
DateTime. A minimal API for these has been added.
2008-11-11 12:34:05 +00:00
Simon Michael
5c0ff1daa5 separate confusing "normalise" uses, begin to fix broken amount display prefs 2008-10-18 21:10:08 +00:00
Simon Michael
17ab6cb0ab support --real/-R flag 2008-10-16 09:50:16 +00:00
Simon Michael
57603db7b9 support -C/--cleared flag to filter by entry status (not transaction status) 2008-10-16 09:04:44 +00:00
Simon Michael
2711474bc9 "hledger test" now accepts ledger-style name patterns, to run a subset of tests
Eg: hledger test amount, hledger test -'balance report'
2008-11-21 18:45:09 +00:00
Simon Michael
5fcab59414 support negative patterns and ledger's special balance report account matching rule 2008-10-15 17:04:47 +00:00
Simon Michael
782d05aa61 use the display settings of the first amount detected in each commodity 2008-10-15 00:34:02 +00:00
Simon Michael
4efdda25b4 replace Currency with a more flexible, ledger-style Commodity 2008-10-12 21:52:48 +00:00
Simon Michael
80ef214f79 nicer ghci/repl usage, update docs 2008-10-12 09:17:21 +00:00
Simon Michael
01cd388c24 remove dead code, simplify cacheLedger again 2008-10-12 07:46:54 +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
220417ce48 top-level Utils module 2008-10-10 10:04:26 +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
688f2447a5 move main module comment 2008-10-10 07:39:13 +00:00
Simon Michael
d1dfcafc39 move entry filter functions to RawLedger 2008-10-10 04:23:25 +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
Simon Michael
73c49ec060 reduce unnecessary imports 2008-10-10 02:19:53 +00:00
Simon Michael
cdc5a23192 clean up imports whitespace, minimise explicit intra-app import/export declarations for now 2008-10-10 01:53:39 +00:00
Simon Michael
2f59135953 simple --version option 2008-10-10 01:36:21 +00:00