John Wiegley
5a44784817
Removed the special "one" variable, and added amount_t::inverted().
2009-01-31 04:57:24 -04:00
John Wiegley
e9ff5caa13
Rationals based math is now passing the unit tests.
2009-01-31 04:25:05 -04:00
John Wiegley
5ec98f3ed3
Several corrections to the way rationals are handled.
2009-01-31 01:25:29 -04:00
John Wiegley
02ac444374
Don't parse reserved word (such as "and" or "true") as commodity names.
2009-01-31 01:22:04 -04:00
John Wiegley
6213dc5af8
Whitespace fix.
2009-01-30 19:28:53 -04:00
John Wiegley
9aaab88c61
Update Doxygen documentation. Still much more work to be done.
2009-01-29 02:24:42 -04:00
John Wiegley
8b75b5cbfb
Revised the way that parsing flags get passed around.
2009-01-29 02:24:25 -04:00
John Wiegley
094c64b67c
amount_t and commodity_t objects can now stream themselves to XML.
2009-01-28 20:49:44 -04:00
John Wiegley
c49f05a15a
Guard debug code in commodity.cc, so it will build optimized.
2009-01-23 19:50:35 -04:00
John Wiegley
d9e97cfede
When parsing commodities, if there is no symbol or annotations, reset the
...
stream pointer in order to give more accurate error reporting.
2009-01-22 21:15:05 -04:00
John Wiegley
887828a40c
Increased copyright range to include 2009.
2009-01-20 01:53:31 -04:00
John Wiegley
7cc64c04a5
Don't calculate a reflexive price if a commodity has been marked as NOMARKET.
2009-01-19 22:30:34 -04:00
John Wiegley
d9197fc2e5
Changed COMMODITY_STYLE_NOMARKET TO COMMODITY_NOMARKET.
2009-01-19 22:24:56 -04:00
John Wiegley
52e140d14e
Lookup commodity prices recursively, searching for the newest data.
2009-01-19 19:59:49 -04:00
John Wiegley
009dd3969a
Added a recursive, date-based commodity price searching capability. This
...
makes it possible to find all possible prices for a commodity by walking the
map of pricing relationships to all other commodities, even if the relation is
distant.
2009-01-19 17:48:27 -04:00
John Wiegley
b5386b2534
Added code to recursively search for a price in a given commodity.
2008-09-25 13:59:01 -04:00
John Wiegley
6007e3cbfe
Did more restructing of commodity price histories, although the completed
...
find_price does not work yet.
2008-09-21 10:26:38 -04:00
John Wiegley
79a8fc5a87
Created several alternate 'value' methods to support the upcoming commodity
...
valuation changes.
2008-09-21 07:56:23 -04:00
John Wiegley
697f6a6bce
Began initial work to support specifying a series of commodities to -V.
2008-09-20 14:46:18 -04:00
John Wiegley
1bbb6933af
Cleaned up the way that commodity pricing is handled.
2008-09-20 13:48:36 -04:00
John Wiegley
1c2944d829
When automatically associating lot details with a commodity, use only the
...
price (based on the cost of the transactions), don't automatically use the
date and the entry code -- since most people aren't going to be that specific
at the time of sale, it's causes confusion in certain cases.
2008-09-19 08:07:51 -04:00
John Wiegley
8da86ae078
Removed dead code.
2008-08-17 03:47:01 -04:00
John Wiegley
3f8412f404
When printing commodity lot dates, using format_date().
2008-08-13 02:58:10 -04:00
John Wiegley
c9d575abce
Basic balance reports are working again!
2008-08-10 00:57:29 -04:00
John Wiegley
f6f4a46cf5
Moved around most of the files so that source code is in src/, documentation
...
is in doc/, etc.
2008-08-05 18:05:49 -04:00