Commit Graph

284 Commits

Author SHA1 Message Date
Simon Michael
33a1c6533b refactor: clarify the two register types, "posting register" and "account register"
See the docstrings for details. Possibly temporary names, but at least
make the naming consistent and distinct.
2011-06-24 02:44:31 +00:00
Simon Michael
4637e5b018 keep haddock happy 2011-06-24 01:30:16 +00:00
Simon Michael
b165f796cc web: start txn-centric register refactoring, account register shows most recent first 2011-06-24 01:29:01 +00:00
Simon Michael
9fac61eb0d web: in account register, show multiple postings as a single "split"
Clicking on one of these currently goes nowhere.
2011-06-14 19:10:57 +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
b137a346c0 web: make a filtered account register's Total column positive, like a journal register 2011-06-13 21:39:00 +00:00
Simon Michael
1a88879734 web: more account register fixes; heading shows "Balance" or "Total" appropriately 2011-06-13 19:49:34 +00:00
Simon Michael
06331c71a8 account register balance not right.. more fixes and plans 2011-06-12 22:35:54 +00:00
Simon Michael
c9c6be27c0 don't show subaccounts in account register report 2011-06-11 18:35:56 +00:00
Simon Michael
94709e5139 preliminary single-account register report 2011-06-11 16:11:38 +00:00
Simon Michael
ca9b4fcdd5 --help tweak 2011-08-07 16:52:35 +00:00
Simon Michael
13acc458e1 alias docs fixes 2011-08-05 00:40:57 +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
d025daa8a9 drop unused SubTotal option 2011-08-07 17:10:34 +00:00
Simon Michael
513846e8c2 refactor: explicit sibling imports is better style here 2011-08-07 20:22:35 +00:00
Simon Michael
5c8e533ba9 import cleanups 2011-06-06 19:04:21 +00:00
Trygve Laugstøl
8412225ba5 add-in-and-out-field-rules-for-convert
* Support in-field and out-field for CSV files that use two columns for each kind of movement.
2011-05-29 21:50:59 +00:00
Trygve Laugstol
28dbb8864f Adding basic ledger FORMAT parser. 2011-06-20 21:33:26 +00:00
Simon Michael
c565b2606d simplify api, optsToFilterSpec just needs a day not a time 2011-06-13 23:28:39 +00:00
Simon Michael
e7c6ee3dc3 refactor: convert to cost-basis at report time, not startup time 2011-06-03 03:29:57 +00:00
Simon Michael
eb6395e91c fix that refactoring for web handlers 2011-06-03 02:52:08 +00:00
Simon Michael
96aa9bfc76 matcher improvements, tests 2011-06-11 18:35:20 +00:00
Simon Michael
6a185bc51f refactor: abstract regular expression lib 2011-06-05 18:31:19 +00:00
Trygve Laugstøl
170154edfb explicit-rules-file-argument-and-converting-stdin
* Adding support for telling which rules file to use with "--rules FILE".
* Adding support for using stdin when converting files.
2011-05-29 19:22:55 +00:00
Simon Michael
5084280879 imports, api cleanup 2011-05-28 04:11:44 +00:00
Simon Michael
9734ed47a6 web: acct: -> in:/inacct:, match only one account (CI exact string match on full name), old acct: re-enabled 2011-06-08 22:02:49 +00:00
Simon Michael
2e754b79a2 clarify meaning of balance report item's indent field 2011-06-14 21:28:21 +00:00
Simon Michael
dc7a692a19 refactor: remove costbasis and whichdate from FilterSpec 2011-06-03 02:14:36 +00:00
Simon Michael
910e5c2bee bump version 2011-09-02 00:42:50 +00:00
Simon Michael
883bc240c9 cli: cabal dependency fixes 2011-07-18 23:24:54 +00:00
Simon Michael
cfb26463b7 hledger.cabal: note self-depending issues and revert to the old way of building 2011-06-01 18:23:46 +00:00
Simon Michael
997ab43c35 cli: cabal updates, try to depend on self, don't use deprecated test api 2011-05-29 04:51:53 +00:00
Simon Michael
ac5059ea53 bump version 2011-05-24 04:28:21 +00:00
Simon Michael
754cc59804 fix some warnings 2011-05-21 02:48:20 +00:00
Simon Michael
7554cc7f9b installing: don't require newer process after all, too many problems 2010-12-25 19:53:21 +00:00
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