Commit graph

309 commits

Author SHA1 Message Date
Craig Earls
3e72a51dc3 Addes tags command and --values option
Tags command reports all metadat tags in use.  With the
values option it reports tags and their values.
2013-01-29 09:42:10 -07:00
Johann Klähn
d922f46595 fix bug 748: option aliases not recognized 2013-01-15 23:30:17 +01:00
Craig Earls
5c5c6463c7 Added missing break; statement in report.cc 2012-10-26 15:46:10 -07:00
Craig Earls
10180f0fff Added "draft" and "lisp" command synonyms 2012-10-26 13:33:27 -07:00
Craig Earls
b044a74bd3 Bug 634 and 488, Corrected behavior of floor, and added ceiling
This is only a partial fix for 634, since rounding is not fixed.
2012-10-25 22:28:26 -07:00
John Wiegley
4681e58d7f Converted the Ledger build system to use CMake 2012-05-20 04:48:05 -05:00
John Wiegley
7e8ba51cd0 Added a "json" report command 2012-05-18 01:38:39 -06:00
John Wiegley
a38ed141c1 Switched to Boost.PropertyTree for XML generation 2012-05-18 01:31:01 -06:00
John Wiegley
f4f3058b8c Switch to using Boost.Format 2012-05-14 21:44:00 -06:00
John Wiegley
6a5360e2b5 Make --detail a synonym for --rich-data 2012-04-13 15:16:24 -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
cd50fe0547 More improvements to nail_down; fixes #715 2012-03-19 00:41:32 -05:00
John Wiegley
f9088f8836 Added --verify-memory and missing TRACE_[CD]TOR calls 2012-03-18 01:01:30 -05:00
John Wiegley
f96a205c03 Make --days-of-week an alias for --dow 2012-03-17 05:55:11 -05:00
John Wiegley
37347bad56 Add experimental support for select queries 2012-03-13 10:35:08 -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
cb317f9d39 Added format_datetime valexpr function 2012-03-13 03:40:16 -05:00
John Wiegley
cf67fcbd06 Resolved a huge performance issue with 'pricedb' 2012-03-12 05:48:10 -05:00
John Wiegley
62c04deb87 Quieted several compiler warnings from Clang 2012-03-11 05:08:55 -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
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
John Wiegley
6ddd935e4a --percent now plays well with -X and -V 2012-03-10 21:58:43 -06:00
John Wiegley
2a4d7e1af0 Added --immediate option 2012-03-10 21:58:28 -06:00
John Wiegley
860610fdaf Added --dc option, for debit/credit style reports 2012-03-10 21:34:51 -06:00
John Wiegley
7b45a664f2 Make --lot-notes the primary name, not --lot-tags 2012-03-10 21:33:31 -06:00
John Wiegley
02225a014a Give a better error when sequences are mis-indexed 2012-03-10 21:32:38 -06:00
John Wiegley
50f202c4e8 Make --lot-notes a synonym for --lot-tags 2012-03-10 01:01:26 -06:00
John Wiegley
77e9e3bfb9 Allow --budget-format to be used 2012-03-09 14:11:13 -06:00
John Wiegley
318b5f49ff Fixed the behavior of fn_nail_down 2012-03-09 07:02:53 -06:00
John Wiegley
59f5ebe2df Reworked the way that options are handled 2012-03-09 03:51:53 -06:00
John Wiegley
9f81c798ee fn_market can now accept a commodity name for arg 0 2012-03-08 01:08:08 -06:00
John Wiegley
113fb0ee6a Added --historical option 2012-03-08 01:00:16 -06:00
John Wiegley
21e8b7f6f0 Added nail_down() for pinning market value exprs 2012-03-08 00:55:06 -06:00
John Wiegley
b1107f85ae Removed value_t::price and balance_t::price 2012-03-07 10:32:24 -06:00
John Wiegley
b6adc8f460 Use unique_ptr instead of std::auto_ptr 2012-03-05 17:46:42 -06:00
John Wiegley
477a9106e3 Prettified some code in report.cc 2012-03-05 17:45:45 -06:00
John Wiegley
dc9ecc600a Guard against double-freeing of report objects 2012-03-05 15:17:59 -06:00
John Wiegley
5d8cb30774 Implemented first cut at price conversion logic 2012-03-05 05:03:52 -06:00
John Wiegley
48ab6ad1db Switched to using Boost.Graph for commodity pricing 2012-03-05 05:03:52 -06:00
John Wiegley
58d912827d Make --value a synonym for market 2012-03-05 05:03:51 -06:00
John Wiegley
4406155475 Make --change a synonym for --gain 2012-03-05 05:03:51 -06:00
John Wiegley
e2afc783db Increased file copyrights to 2012 2012-02-29 22:32:23 -06:00
John Wiegley
656e46e182 Renamed actual/effective dates to primary/auxiliary 2012-02-28 03:02:16 -06:00
John Wiegley
aa9b07d79b Added --rich-data for 'convert', and SHA1 checksum checking 2012-02-26 15:45:15 -06:00
John Wiegley
4a18317e7c Added --auto-match option, for use with 'convert' 2012-02-26 02:16:09 -06:00
John Wiegley
c47350dce9 Corrected handling of nested definitions 2012-02-21 03:53:00 -06:00
John Wiegley
c3a9a7d2c5 Fixed many Clang type conversion warnings with static_cast 2012-02-17 15:17:52 -06:00
John Wiegley
41971c97dd Use value_t::to_long() 2012-02-17 15:17:05 -06:00