Commit Graph

1097 Commits

Author SHA1 Message Date
Simon Michael
24c578bcd4 fix for "reorganize tests" 2010-12-29 01:35:41 +00:00
Simon Michael
eac34e85fa histogram: honour the specified start or end dates 2011-01-14 04:18:58 +00:00
Dmitry Astapov
a87c016615 Hledger.Cli.Commands renamed to Hledger.Cli, updating .cabal accordingly 2011-01-20 23:07:33 +00:00
Simon Michael
6208ed017b treat arguments as possibly-encoded platform strings, not unconditionally utf-8 2011-01-21 01:16:55 +00:00
Simon Michael
6a845eb5e4 i18n: always read and write UTF-8, ignoring current locale (#34)
Also remove a bunch of CPP conditions.
Uses the GHC-version-independent UTF-8 layer from pandoc.
2011-01-21 01:24:51 +00:00
Dmitry Astapov
b9ae208bd5 Added support for effective-date-field to the "convert" operation 2011-01-23 20:48:28 +00:00
Dmitry Astapov
c78fe9dd5d Added account-field to Convert.hs 2011-01-22 09:37:25 +00:00
Dmitry Astapov
e37d3a522d Forgot to take accountField into account while calculating max. field index 2011-01-23 20:34:03 +00:00
Eric Kow
18a53194b2 Avoid offering account names for completion in inapproriate contexts. 2011-03-12 19:59:35 +00:00
Eric Kow
9f539f0138 Remember default account even if user submits a different amount.
The use case here is spending that fits a certain template, but
whose amount tends to vary (for example, daily lunch at a cafe).
2011-03-12 19:41:14 +00:00
Eric Kow
3ae989e8cb Move getPostings arguments into a record.
This seems like the kind of function that can get increasingly sophisticated
as the UI gets smarter.  A single argument record could lend a certain
stability, and we're not likely to lose much in partial application terms.
2011-03-12 19:32:01 +00:00
Max Bolingbroke
8c3aa657b6 Add support for date-format conversion directive 2010-12-21 17:57:06 +00:00
Dmitry Astapov
2c771f3d7f Allow amounts with total price in the input to "hledger convert" 2011-04-10 15:01:26 +00:00
Simon Michael
e96dfc639e support "every N day/week/month/quarter/years" reporting intervals 2011-01-14 02:35:00 +00:00
Simon Michael
b2f439eb11 try showing integral "maxprecision" amounts without the .0 (except in add's defaults, where it helps) 2011-01-20 00:17:32 +00:00
Simon Michael
961a6f09eb docs: update copyright dates 2011-04-18 17:36:28 +00:00
Simon Michael
cc656b72c7 remove unnecessary pragmas 2011-04-19 00:43:49 +00:00
Simon Michael
49b291d284 docs: tweak 2011-04-19 01:12:29 +00:00
Simon Michael
7ee69f5ed8 docs: harmonise/update package descriptions 2011-04-19 00:50:47 +00:00
Simon Michael
b159f74a4c zero amounts have no sign or commodity, and amounts with different prices are aggregated, like ledger 2011-04-22 13:50:05 +00:00
Simon Michael
e973868995 bump version 2011-04-18 06:53:50 +00:00
Simon Michael
9f66549b5a bump version to alpha 2011-01-21 01:27:39 +00:00
Simon Michael
d369d1f72a docs: misc 2011-01-20 15:30:22 +00:00
Simon Michael
d3663b818e parsing: better international number format support (#32)
This allows period and comma to be used for decimal point and digit group
separator or vice versa, and also flexible digit groups.  See
http://en.wikipedia.org/wiki/Decimal_separator .  Digit group separators
are possibly not worth the trouble and might not stay.
2011-01-19 12:32:18 +00:00
Simon Michael
dd9e78a67a reorganize tests 2010-12-27 20:26:22 +00:00
Simon Michael
a85e9bf68b fix hledger cabal file, cleanup 2010-09-10 01:45:12 +00:00
Simon Michael
27a0900ea9 fix some tests 2010-11-14 20:03:49 +00:00
Simon Michael
811e71aba7 price precisions don't influence display precision; balancing is based on display precision (#23)
Like ledger, price amounts are now "unobserved", ie their precision does
not affect the canonical display precisions used when displaying amounts,
and transaction balancing is done based on display precision, ie amounts
are considered to balance if their sum appears to be zero when using the
canonical display precision.
2010-11-14 22:44:37 +00:00
Simon Michael
e707f97847 parsing: parse transaction and posting metadata, though we don't use it yet 2010-11-13 22:17:32 +00:00
Judah Jacobson
bb43c2c750 Finish the "add" command after an end-of-file. 2010-11-15 03:13:42 +00:00
Simon Michael
a3a7a346ac uniquify reader module names 2010-11-15 07:01:46 +00:00
Simon Michael
5d45f5b387 add: update help message 2010-11-16 15:09:33 +00:00
Simon Michael
ea903ffe6e add: more tests, bugfixes for add's commodity/precision handling; make all tests pass 2010-11-16 15:08:06 +00:00
Simon Michael
e93474e873 cli: require newer process version to assist cabal-install 2010-11-26 20:36:28 +00:00
Simon Michael
27ad4d7efe briefer, more informative usage error messages 2010-11-29 01:08:19 +00:00
Simon Michael
93b1f2b0ca more correct args parsing, fix account filtering in hledger-web 2010-11-29 00:37:21 +00:00
Simon Michael
c6a85c4b88 packagegeddon: make usage and version messages specific to each add-on program
All this stuff has been split up, except for the moment it's still
necessary to define all option constructors in Hledger.Cli.Options.
2010-11-26 19:14:09 +00:00
Simon Michael
188d936889 restore web/vty/chart's special flags as hidden options for now 2010-11-19 00:27:33 +00:00
Simon Michael
1127c3f52f flatten modules a little 2010-11-15 06:48:49 +00:00
Simon Michael
15518da4ac bump version 2010-12-06 18:37:10 +00:00
Simon Michael
37378d6b97 add: add default commodity to commodity-less amounts (#26), misc. defaults fixes 2010-11-13 15:11:45 +00:00
Judah Jacobson
18fd5fe482 Use haskeline in the "add" command, and tab-complete account names. 2010-10-30 18:52:44 +00:00
Simon Michael
d6c2cf6a90 parsing: save final parse context with journal 2010-11-13 15:03:40 +00:00
Simon Michael
7714bab58d web: offer a choice of files to edit when there are multiple (included) files 2010-09-24 01:56:11 +00:00
Simon Michael
78db98366f parsing: support D default commodity directive 2010-11-12 23:54:21 +00:00
Simon Michael
55a44e1ddc fix doctest 2010-12-07 02:15:42 +00:00
Simon Michael
9cb716d002 packagegeddon.. split off web/chart/vty, move hledger to a subdir 2010-09-09 22:54:34 +00:00