Commit graph

4040 commits

Author SHA1 Message Date
David Whitmarsh
db204e0907 Fix an example of fixed lot prices
Changed the results of the last example in 5.5.3 to match what really
happens
2012-03-18 09:42:43 -05:00
Craig Earls
9342b71462 Added John recent detailed discussion of Transactions, remove redundant exaplantions elesewhere. Updated account and tag directives to be "apply" 2012-03-16 18:04:45 -07:00
John Wiegley
00ff141ee7 Always close the last report output stream
Should fix #701
2012-03-16 15:31:30 -05:00
John Wiegley
6305855997 Don't allow trailing ws in abbrev. account segments
Fixes #358
2012-03-16 05:30:34 -05:00
John Wiegley
2605d8a711 Improved error reporting for bad account names
Fixes #374
2012-03-16 04:29:35 -05:00
John Wiegley
7462d09b21 Correct parsing of automated xact expressions
Fixes #458
2012-03-16 04:09:21 -05:00
John Wiegley
20c076dff9 Improved error reports about leading whitespace 2012-03-16 03:50:40 -05:00
John Wiegley
dc91d4f1e6 Added regression test for #584 2012-03-16 03:12:18 -05:00
John Wiegley
49ec40a939 pricedb was outputting redundant prices
Fixes #704
2012-03-16 03:09:13 -05:00
John Wiegley
ecd2ece195 Restored tabs that had been converted to spaces 2012-03-16 03:00:39 -05:00
John Wiegley
11067d9cc6 Unexpected initial whitespace is an error (again)
Fixes #565
2012-03-16 02:39:42 -05:00
John Wiegley
4da56023d0 Added ldg-test.el, to assist writing regression tests 2012-03-16 01:00:20 -05:00
John Wiegley
a49e33a8ce Don't add price exchanges for a commodity itself
Fixes #703
2012-03-16 01:00:20 -05:00
Craig Earls
61e369b04b Added description of --dc, internal Ledger Architecture, remove ! and @ from command directives 2012-03-15 19:19:51 -07:00
John Wiegley
429cfc5c80 Don't use -fomit-frame-pointer when building optimized
Makes stack traces impossible
2012-03-15 05:01:39 -05:00
John Wiegley
610a3e1709 Don't map_prices if price commodity matches source
Fixes #680
2012-03-15 04:58:53 -05:00
John Wiegley
d9fc09097d Added regression test for #438 2012-03-14 17:36:00 -05:00
John Wiegley
fbcbbeb987 Added two regressions tests from Thierry Daucourt 2012-03-14 17:21:21 -05:00
John Wiegley
37347bad56 Add experimental support for select queries 2012-03-13 10:35:08 -05:00
John Wiegley
c4e942fcb1 Change abbrev_len to int(abbrev_len) 2012-03-13 10:34:51 -05:00
John Wiegley
70941cbd4a Added to_string(std::size_t) 2012-03-13 10:34:26 -05:00
John Wiegley
a9c387377b Made join_args() a global function 2012-03-13 10:34:16 -05:00
John Wiegley
927d404ad5 Added a syntax error check 2012-03-13 10:33:59 -05:00
John Wiegley
e65fc729bc Made split_cons_expr a global function 2012-03-13 10:33:51 -05:00
John Wiegley
c8dd3d28e3 Added --time-report option
This is a rather basic option at the moment which only affects the
balance report.  I use it as follows, for entering contractor hours into
a project planning application, where $1 is the contractor's timelog
file, and $2 is the date after which new entries appear in the file:

    ledger -f $1 balance                            \
           --account=payee                          \
           --time-report                            \
           -d "latest > [$2]"                       \
           --datetime-format='%m/%d/%y %I:%M %p'
2012-03-13 03:45:06 -05:00
John Wiegley
2932e05c18 Account valexprs: earliest_checkin, latest_checkout
Lets you access the earliest/latest checkin/checkout times for timelog
entries in an account.  Will be NULL if the account doesn't contain any.
2012-03-13 03:42:11 -05:00
John Wiegley
cfe8142b2b Access to checkin/checkout of timelog entries 2012-03-13 03:41:00 -05:00
John Wiegley
cb317f9d39 Added format_datetime valexpr function 2012-03-13 03:40:16 -05:00
John Wiegley
f35f68823a The anonymizer wasn't properly setting the journal 2012-03-13 00:04:44 -05:00
John Wiegley
dcd83203e6 posts_commodities_iterator wasn't setting the journal 2012-03-13 00:04:31 -05:00
John Wiegley
59cbcf703c post_t's copy constructor wasn't copying xdata_ 2012-03-13 00:03:56 -05:00
John Wiegley
72fc1824d0 dijkstra_shortest_paths should never return a reverse path 2012-03-12 23:04:16 -05:00
John Wiegley
098f3d45d7 Fixed speed issue with commodities reports 2012-03-12 22:38:52 -05:00
John Wiegley
be289fba1f Fixed a few bugs related to apply directives 2012-03-12 22:38:36 -05:00
John Wiegley
cf67fcbd06 Resolved a huge performance issue with 'pricedb' 2012-03-12 05:48:10 -05:00
John Wiegley
ed42a7ebfe Allow payee names to contain multiple spaces 2012-03-12 05:48:10 -05:00
John Wiegley
fb2e80406f Ignore all trailing whitespace in Ledger journals 2012-03-12 05:48:10 -05:00
John Wiegley
ed71421c8a Merge pull request #57 from plathrop/bug/emacs-reconcile-visit
Fix ledger-reconcile-visit.
2012-03-11 18:50:00 -07:00
John Wiegley
8fe68c5fc3 Guarded against unreachable code warnings 2012-03-11 05:27:13 -05:00
John Wiegley
a2b6a81cae DO_VERIFY() was always true in optimized builds 2012-03-11 05:15:56 -05:00
John Wiegley
fcc68a0041 Critical fix to temporary destruction order 2012-03-11 05:09:06 -05:00
John Wiegley
62c04deb87 Quieted several compiler warnings from Clang 2012-03-11 05:08:55 -05:00
John Wiegley
020de80f60 Make sure not to free global_scope unless --verify 2012-03-11 04:55:51 -05:00
John Wiegley
234348f7fa Fixed a bug that was breaking optimized builds 2012-03-11 04:30:08 -05:00
John Wiegley
aebf77d5b4 Don't clean up at end if not needed 2012-03-11 04:27:11 -05:00
John Wiegley
fad24d40f7 When --percent is used, disable --decimal-comma after parsing
Fixes #674
2012-03-11 04:02:52 -05:00
John Wiegley
d93c5a7d43 Corrected a typo 2012-03-11 04:02:25 -05:00
John Wiegley
363670d35b Tighten up argument passing related to fn_market() 2012-03-11 03:55:25 -05:00
John Wiegley
2303aa993c Allow balances to be passed to nail_down
Fixes #679
2012-03-11 03:06:50 -05:00
John Wiegley
0d9d845338 Corrected a rounding error in nail_down
Fixes #678
2012-03-11 03:06:03 -05:00