John Wiegley
df1cbc33d1
Whitespace fix
2012-03-30 04:45:51 -05:00
John Wiegley
8e8c2904f5
Never price commodities using annotated commodities
2012-03-30 00:51:05 -05:00
John Wiegley
0f180b917a
Improved some error messages
2012-03-29 16:25:22 -05:00
John Wiegley
22505d9527
Always call TRACE_CTOR at the end of constructors
2012-03-20 02:10:40 -05:00
John Wiegley
363670d35b
Tighten up argument passing related to fn_market()
2012-03-11 03:55:25 -05:00
John Wiegley
080c1d9a2d
Added syntactic sugar for lot pricing: {{$500.00}}
2012-03-10 02:27:33 -06:00
John Wiegley
ca8f702a1b
Added amount_t::commodity_ptr()
2012-03-09 03:25:53 -06:00
John Wiegley
ec1f15a4b2
Made amount_t::price return an optional<amount_t>
2012-03-07 10:32:35 -06:00
John Wiegley
71d0033b6f
Corrected several compile and link problems
2012-03-06 23:04:27 -06:00
John Wiegley
02ffa7a515
Changed the category of a few DEBUG statements
2012-03-06 02:00:36 -06:00
John Wiegley
b6adc8f460
Use unique_ptr instead of std::auto_ptr
2012-03-05 17:46:42 -06:00
John Wiegley
8d6bf11334
All tests are working again but one
2012-03-05 05:03:52 -06:00
John Wiegley
e2afc783db
Increased file copyrights to 2012
2012-02-29 22:32:23 -06:00
John Wiegley
c3a9a7d2c5
Fixed many Clang type conversion warnings with static_cast
2012-02-17 15:17:52 -06:00
John Wiegley
f4e22cf7cb
Fixes for variable shadowing (5/28)
2012-02-17 15:06:02 -06:00
John Wiegley
24ae4bac7f
Fixes for variable shadowing (4/28)
2012-02-17 15:06:01 -06:00
John Wiegley
f9613fe1de
Fixes for variable shadowing (3/28)
2012-02-17 15:05:59 -06:00
John Wiegley
d493f79651
Use GMP_* macros instead of MPFR_*
2011-11-05 01:49:25 -05:00
John Wiegley
fc67484a21
amount_t::in_place_floor should round toward zero
2011-10-11 15:31:00 -05:00
John Wiegley
f0791bbd72
Cleanup whitespace
2011-08-18 14:48:38 -04:00
John Wiegley
add6f6ca2a
Removed unused variables
2011-08-18 14:46:36 -04:00
John Wiegley
2208ac1226
Fixes for compilation as C++0x code
2011-02-04 22:39:41 -05:00
John Wiegley
e162455ebb
Minor simplifications to valexpr parser
...
The most significant change is the way CONS sequences are parsed, and
that now instead of =/:=, the operators are ==/=.
2010-09-05 01:38:47 -04:00
John Wiegley
9ce498f890
Added debug print for commodity.prices.find
2010-06-20 17:10:50 -04:00
John Wiegley
627162acc0
Made amount_t::value a bit safer
2010-06-19 13:34:15 -04:00
John Wiegley
dea2aed0b5
Untabified all source files
2010-06-11 17:02:25 -04:00
John Wiegley
8637dd6ccf
New display flag AMOUNT_PRINT_ELIDE_COMMODITY_QUOTES
...
This is used by reports like register and balance so that separated
commodities without spaces in them needed be surrounded by quotes. It
will still occur in most other places.
Fixes #200 / F82CF11F-BFD9-4512-A562-202B04B68051
2010-06-09 06:45:07 -04:00
John Wiegley
be6cef93c4
A further simplification of -V and -X
...
With -X COMM, all values are computed in terms of COMM, regardless.
With -V, only secondary commodities will ever be computed, never
primaries. Further, if a secondary commodities has an associated price,
the valuation is done in terms of that price's commodity.
2010-06-07 09:49:17 -04:00
John Wiegley
c85cf0d810
Fixed the way prices and costs are print'd
2010-06-07 08:32:14 -04:00
John Wiegley
a4d4f99794
amount_t::print and value_t::print now use flags
2010-06-07 08:32:13 -04:00
John Wiegley
b848ace768
Allow opt -NDEBUG build to complete without warnings
2010-06-04 06:02:00 -04:00
John Wiegley
f76b271d24
Removed a redundant check
2010-06-03 23:18:18 -04:00
John Wiegley
e8bf3da053
Short-circuit annotated commodity valuation
2010-06-03 17:59:43 -04:00
John Wiegley
0f1afdb3a7
Minor optimization of amount_t::operator*
2010-06-03 05:47:12 -04:00
John Wiegley
3324e3472d
Removed some debug code
2010-06-03 00:54:10 -04:00
John Wiegley
cbc0a125c0
Correct display of amounts with keep_precision
...
Fixes #167 / 1D275740-D1A6-42B7-BDE4-F2F85E30CE8E
2010-06-02 06:24:25 -04:00
John Wiegley
75363003bd
Throw an exception if mpfr_asprintf fails
2010-06-02 04:01:16 -04:00
John Wiegley
038c24357e
Changed --european option to --decimal-comma
...
Fixes #211 / 1736ACA5-5DE6-4826-AEB4-DB5B2A2217AC
2010-06-01 17:56:41 -04:00
John Wiegley
04461f49fd
Optimized amount_t::in_place_truncate
2010-05-26 00:58:04 -06:00
John Wiegley
ab416f759f
Updated copyrights to 2003-2010
2010-03-05 22:14:10 -05:00
John Wiegley
4e30fcdf40
Many improvements to Ledger's Python bindings
2009-11-19 22:24:24 -05:00
John Wiegley
20c725df93
Made the amount_t::bigint_t refcount holder 32-bits
...
It was overflowing on a full register report of just 3M of data.
2009-11-14 06:25:27 -05:00
John Wiegley
afe87280e0
Added floored() and in_place_floor() methods
2009-11-11 03:39:53 -05:00
John Wiegley
acb69193d8
Added a few missing explicit instantiations
2009-11-10 20:57:08 -05:00
John Wiegley
687c71c71d
Improved the numerical parser for basic amounts
...
1,00,000 now causes an error, for example, whereas before the commas
were largely ignored.
2009-11-10 00:10:25 -05:00
John Wiegley
6cdb79e2a6
XML reporting now works via the "xml" command
2009-11-09 03:42:35 -05:00
John Wiegley
2c80227339
Added basic foundation for XML reporting
2009-11-09 02:17:26 -05:00
John Wiegley
523d4243e8
Made --european more pervasive in its effect
2009-11-08 18:30:35 -05:00
John Wiegley
690e46117e
Added Python interface for commodity_t
2009-11-02 21:55:53 -05:00
John Wiegley
3f8c126c79
Use is_annotated() method rather than "annotated"
2009-11-02 16:57:53 -05:00