Commit graph

1850 commits

Author SHA1 Message Date
John Wiegley
931d6ff3f4 Fix to Python value() method handling 2012-03-30 00:51:06 -05:00
John Wiegley
a1c33fec02 Allow dates to be passed to Python value() method 2012-03-30 00:51:06 -05:00
John Wiegley
8e8c2904f5 Never price commodities using annotated commodities 2012-03-30 00:51:05 -05:00
John Wiegley
b5e76f0056 Fix to commodity printing 2012-03-29 16:28:53 -05:00
John Wiegley
0f180b917a Improved some error messages 2012-03-29 16:25:22 -05:00
John Wiegley
7422fa5f3e Allow post.cost to work in Python 2012-03-29 15:56:05 -05:00
John Wiegley
08f65eeadc Allow serialization to be enabled again 2012-03-29 15:35:20 -05:00
John Wiegley
902ab72eb4 Forgot to copy two members in post_t's copy-ctor 2012-03-28 03:02:31 -05:00
Martin Michlmayr
a47625be35 Make pricesdb an alias for pricedb for backwards compatibility with ledger 2
ledger 2.2 introduced the pricesdb command.  This was renamed to
pricedb in ledger 3.  Allow pricesdb as an alternative to pricedb
to provide backwards compatibility.

Fixes bug #728
2012-03-25 11:50:16 +01:00
John Wiegley
cee47cc495 Simplified some code in xact.cc 2012-03-23 16:59:06 -05:00
John Wiegley
4b05759962 Fixed sorting of equity output 2012-03-23 16:46:11 -05:00
John Wiegley
5addacfbf2 Fixed an interaction with equity and virtual accounts
Fixes #686
2012-03-22 23:42:18 -05:00
John Wiegley
3fb7490bc9 Never output calculate commodity valuation expressions 2012-03-20 05:03:18 -05:00
John Wiegley
e3248ee5a6 Fix problems with <Adjustment> postings 2012-03-20 04:56:03 -05:00
John Wiegley
446beee376 Merge branch 't/A560FDAD' into next 2012-03-20 03:16:13 -05:00
John Wiegley
f76d458ab7 Strip annotations in display_filter_posts
Fixes #718
2012-03-20 03:15:42 -05:00
John Wiegley
22505d9527 Always call TRACE_CTOR at the end of constructors 2012-03-20 02:10:40 -05:00
John Wiegley
79ecbf0c17 Corrected an uninitialized memory bug 2012-03-19 22:28:00 -05:00
John Wiegley
ceb8dd89a6 Don't output zero balances with the equity command 2012-03-19 04:21:15 -05:00
John Wiegley
d2422f99e6 Allow the equity command to strip annotations 2012-03-19 04:18:56 -05:00
John Wiegley
aee05dc7b7 print computed annotations if --generated 2012-03-19 04:18:33 -05:00
John Wiegley
9097bc8cd3 Made an assert more relaxed in item_context() 2012-03-19 04:02:49 -05:00
John Wiegley
e2a22cb8c2 Allow --input-date-format to specify separators
Fixes #650
2012-03-19 03:51:07 -05:00
John Wiegley
cd50fe0547 More improvements to nail_down; fixes #715 2012-03-19 00:41:32 -05:00
John Wiegley
60a281a55a Corrected an error print in value.cc 2012-03-19 00:30:29 -05:00
John Wiegley
d6274fee19 Extend commodity_t::compare_by_commodity::operator() 2012-03-19 00:30:15 -05:00
John Wiegley
20edb3a340 Fixed bug relating to historical pricing
Fixes #681
2012-03-18 02:33:25 -05:00
John Wiegley
47d7f5a43b Fix problem with -H and lack of pricing info
Fixes #691
2012-03-18 02:25:14 -05:00
John Wiegley
f9088f8836 Added --verify-memory and missing TRACE_[CD]TOR calls 2012-03-18 01:01:30 -05:00
John Wiegley
e7d26d53cf Whitespace fix 2012-03-18 00:14:49 -05:00
John Wiegley
09cf0cbb2a Change some #if guards to test for gcc 4.7 2012-03-17 23:14:17 -05:00
John Wiegley
bc31e4838b Fixed #711: Parsing of alias directive 2012-03-17 07:02:03 -05:00
John Wiegley
f96a205c03 Make --days-of-week an alias for --dow 2012-03-17 05:55:11 -05:00
John Wiegley
22c1b867f0 Added option --day-break 2012-03-17 05:27:43 -05: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
49ec40a939 pricedb was outputting redundant prices
Fixes #704
2012-03-16 03:09:13 -05:00
John Wiegley
11067d9cc6 Unexpected initial whitespace is an error (again)
Fixes #565
2012-03-16 02:39:42 -05:00
John Wiegley
a49e33a8ce Don't add price exchanges for a commodity itself
Fixes #703
2012-03-16 01:00:20 -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
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