summaryrefslogtreecommitdiff
path: root/src/commodity.cc
Commit message (Collapse)AuthorAgeFilesLines
* Cured several harmless compiler warningsJohn Wiegley2009-03-041-0/+2
|
* Added Python-style if/else expression keywordsJohn Wiegley2009-03-031-0/+4
|
* Added "fixated commodity pricing"John Wiegley2009-03-021-1/+10
| | | | | | | | | | | | | If you put '=' before an annotated commodity's price, it will cause any future market valuation of that commodity to use that price, and ignore whatever changes may have happened since in the market price. This can be useful if you are tracking gas expenses based on a standard rate which, although it changes over time, should not adjust the historical valuation of how much the gas cost at the time it was purchased: 2009/01/01 Payee Expenses:Gas 100 GAL {=$2} Liabilities:MasterCard $-200
* Corrected warnings g++-4.3.3 was complaining aboutJohn Wiegley2009-02-281-2/+2
|
* Added --lots-actual, to not print calc'd detailsJohn Wiegley2009-02-271-11/+26
|
* Fixed bugs relating to sign and rounding of costsJohn Wiegley2009-02-271-3/+4
|
* The letter 'z' was not allowed in commodity namesJohn Wiegley2009-02-271-2/+2
|
* Marked all strings needing internationalizationJohn Wiegley2009-02-251-11/+11
| | | | | | | | | | | | | | | | These strings are now collected automagically in the file po/ledger.pot. If you'd like to produce a translation, just run this command after building Ledger: msginit -l LOCALE -o LANG.po -i po/ledger.pot Where LOCALE is a string like de or en_GB, and LANG is a short descriptive word for your language. Then send me this .po file so I can commit it to the Ledger sources (alternatively, you could maintain the file in a fork on GitHub), and setup the build script to format and install your new message catalog during a "make install".
* Fixes to the way annotated prices are displayedJohn Wiegley2009-02-241-10/+15
|
* Made commodity reduction during parsing consistentJohn Wiegley2009-02-241-5/+8
|
* Many fixes to --market and --exchangeJohn Wiegley2009-02-221-100/+84
| | | | Also, --exchange now accepted multiple, comma-separated commodities.
* --exchange option now accepts multiple commoditiesJohn Wiegley2009-02-221-39/+0
| | | | They must be separated by a comma, and all whitespace is ignored.
* Added --exchange (-x) optionJohn Wiegley2009-02-221-12/+15
| | | | | | | This is like -V, except it lets you specify the goal commodity to report in terms of, for example: reg -x CAD
* Fixed several unused value and param warningsJohn Wiegley2009-02-161-4/+2
|
* Properly handle UTF-8 characters in commodity strings.John Wiegley2009-02-121-1/+49
|
* Exclude | from the legal commodity character set, as per the comment.John Wiegley2009-02-091-1/+1
|
* Fixed a mistakenly const parameter.John Wiegley2009-02-071-3/+3
|
* Moved parse_commodity_price into commodity_pool_t.John Wiegley2009-02-071-0/+17
|
* Fixed some incorrect #includes.John Wiegley2009-02-071-1/+1
|
* Removed commodity_pool_t's use of boost::multi_index_container, and also itsJohn Wiegley2009-02-071-35/+13
| | | | used of the ident membe, which was only ever used by the binary cache code.
* Largely removed all of Ledger's use of global variables, for the REPL's sake.John Wiegley2009-02-041-12/+11
|
* Removed the binary caching code, and the XML, QIF and Gnucash parsers.John Wiegley2009-02-031-27/+0
|
* Values can now be streamed to XML, and all the types they refer to.John Wiegley2009-02-011-16/+9
|
* Removed the special "one" variable, and added amount_t::inverted().John Wiegley2009-01-311-1/+1
|
* Rationals based math is now passing the unit tests.John Wiegley2009-01-311-3/+1
|
* Several corrections to the way rationals are handled.John Wiegley2009-01-311-1/+1
|
* Don't parse reserved word (such as "and" or "true") as commodity names.John Wiegley2009-01-311-0/+24
|
* Whitespace fix.John Wiegley2009-01-301-2/+4
|
* Update Doxygen documentation. Still much more work to be done.John Wiegley2009-01-291-1/+1
|
* Revised the way that parsing flags get passed around.John Wiegley2009-01-291-1/+1
|
* amount_t and commodity_t objects can now stream themselves to XML.John Wiegley2009-01-281-0/+34
|
* Guard debug code in commodity.cc, so it will build optimized.John Wiegley2009-01-231-2/+42
|
* When parsing commodities, if there is no symbol or annotations, reset theJohn Wiegley2009-01-221-0/+11
| | | | stream pointer in order to give more accurate error reporting.
* Increased copyright range to include 2009.John Wiegley2009-01-201-1/+1
|
* Don't calculate a reflexive price if a commodity has been marked as NOMARKET.John Wiegley2009-01-191-4/+3
|
* Changed COMMODITY_STYLE_NOMARKET TO COMMODITY_NOMARKET.John Wiegley2009-01-191-4/+7
|
* Lookup commodity prices recursively, searching for the newest data.John Wiegley2009-01-191-14/+19
|
* Added a recursive, date-based commodity price searching capability. ThisJohn Wiegley2009-01-191-82/+187
| | | | | | 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.
* Added code to recursively search for a price in a given commodity.John Wiegley2008-09-251-11/+95
|
* Did more restructing of commodity price histories, although the completedJohn Wiegley2008-09-211-66/+86
| | | | find_price does not work yet.
* Created several alternate 'value' methods to support the upcoming commodityJohn Wiegley2008-09-211-40/+65
| | | | valuation changes.
* Began initial work to support specifying a series of commodities to -V.John Wiegley2008-09-201-36/+66
|
* Cleaned up the way that commodity pricing is handled.John Wiegley2008-09-201-22/+28
|
* When automatically associating lot details with a commodity, use only theJohn Wiegley2008-09-191-1/+4
| | | | | | 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.
* Removed dead code.John Wiegley2008-08-171-9/+0
|
* When printing commodity lot dates, using format_date().John Wiegley2008-08-131-1/+1
|
* Basic balance reports are working again!John Wiegley2008-08-101-4/+5
|
* Moved around most of the files so that source code is in src/, documentationJohn Wiegley2008-08-051-0/+667
is in doc/, etc.