summaryrefslogtreecommitdiff
path: root/src/commodity.h
Commit message (Collapse)AuthorAgeFilesLines
* Never price commodities using annotated commoditiesJohn Wiegley2012-03-301-0/+3
|
* Improved some error messagesJohn Wiegley2012-03-291-2/+3
|
* Added --verify-memory and missing TRACE_[CD]TOR callsJohn Wiegley2012-03-181-2/+2
|
* Don't map_prices if price commodity matches sourceJohn Wiegley2012-03-151-1/+2
| | | | Fixes #680
* Tighten up argument passing related to fn_market()John Wiegley2012-03-111-11/+11
|
* Use Boost.TupleJohn Wiegley2012-03-091-5/+3
|
* Added nail_down() for pinning market value exprsJohn Wiegley2012-03-081-0/+2
|
* Added "value" sub-directive for commodity directiveJohn Wiegley2012-03-061-0/+14
|
* Made commodity_t::find_price a virtual functionJohn Wiegley2012-03-061-3/+3
|
* Rewrote the way annotated commodities are managedJohn Wiegley2012-03-051-9/+0
| | | | | The new scheme should be much more efficient, and allows for future growth of what annotations may appear on a commodity.
* All tests are working again but oneJohn Wiegley2012-03-051-0/+4
|
* Changes to get all the code to compileJohn Wiegley2012-03-051-9/+15
|
* Switched to using Boost.Graph for commodity pricingJohn Wiegley2012-03-051-111/+3
|
* Increased file copyrights to 2012John Wiegley2012-02-291-1/+1
|
* Cleanup whitespaceJohn Wiegley2011-08-181-1/+1
|
* If fixated price commodities are mixed, show themJohn Wiegley2010-06-201-10/+13
| | | | | | | | | | | For example, if a Ledger file contains transactions with the use of both EUR and EUR {=PRICE}, then regular reports will always show the {=PRICE}, disabling the by-name commodity merging that takes place. In brief, fixated and non-fixated commodities are now non-mergable. If a file contains all of one, or all of the other, they will still be merged, since these separate usages do not conflict the way that fixated and non-fixated together do.
* Changes for building with Visual Studio 2008John Wiegley2010-06-151-1/+1
|
* Untabified all source filesJohn Wiegley2010-06-111-48/+48
|
* New display flag AMOUNT_PRINT_ELIDE_COMMODITY_QUOTESJohn Wiegley2010-06-091-4/+1
| | | | | | | | 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
* A further simplification of -V and -XJohn Wiegley2010-06-071-0/+4
| | | | | | | | 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.
* Fixed the way prices and costs are print'dJohn Wiegley2010-06-071-1/+1
|
* commodity_t::find_price now uses memoizationJohn Wiegley2010-06-041-18/+23
| | | | | This reduces the slowdown of using -V and -X from 36x in some cases down to around 4-5x (for a debug build).
* Made the behavior of -V a bit more rationalJohn Wiegley2010-06-041-1/+2
| | | | It now only values non-primary commodities in terms of primary ones.
* A little bit of code cleanupJohn Wiegley2010-06-041-0/+1
|
* Changed --european option to --decimal-commaJohn Wiegley2010-06-011-13/+13
| | | | Fixes #211 / 1736ACA5-5DE6-4826-AEB4-DB5B2A2217AC
* Updated copyrights to 2003-2010John Wiegley2010-03-051-1/+1
|
* Refactored some comparison helper classesJohn Wiegley2010-02-051-4/+4
|
* Added even more missing virtual keywords!John Wiegley2009-11-221-1/+1
|
* Many improvements to Ledger's Python bindingsJohn Wiegley2009-11-191-1/+1
|
* XML reporting now works via the "xml" commandJohn Wiegley2009-11-091-1/+7
|
* Added basic foundation for XML reportingJohn Wiegley2009-11-091-0/+2
|
* Removed a bunch of empty commentsJohn Wiegley2009-11-081-15/+0
|
* Whitespace fixJohn Wiegley2009-11-041-5/+5
|
* Fixed a compiler warningJohn Wiegley2009-11-031-3/+4
|
* Added Python interface for commodity_tJohn Wiegley2009-11-021-8/+8
|
* Added Python interface for commodity_pool_tJohn Wiegley2009-11-021-2/+2
|
* Changed protection level of many parts of commodity_tJohn Wiegley2009-11-021-85/+82
|
* Added a --european flag, to use commas for decimalsJohn Wiegley2009-11-021-1/+5
| | | | | | Ledger can often figure this out for itself, but this flag just makes it the default behavior. It is meant to be added to one's ~/.ledgerrc file.
* Added missing TRACE_CTOR callsJohn Wiegley2009-11-011-3/+7
|
* Added serialization methods for most typeJohn Wiegley2009-10-301-1/+82
| | | | | This allows journal_t objects to be completed serialized to disk and deserialized.
* More refactoring for --downloadJohn Wiegley2009-06-241-0/+5
|
* Split commodity.h/cc into three filesJohn Wiegley2009-06-241-239/+0
| | | | | | commodity.h - code for commodity_t annotate.h - commodity annotations pool.h - commodity pool management
* Restored --download, although not done yetJohn Wiegley2009-06-241-1/+9
| | | | | | The problem at this point is that it's recording prices in the price database multiple times; it should only need to download a price for each commodity once per day.
* The -X option now accepts price settingsJohn Wiegley2009-06-181-1/+3
| | | | | | | For example, if you had 100 AU (onces of gold) and wanted to report it in dollars, but at a price of $997 per ounce, you could now easily say: ledger bal -X '$,AU=$997'
* Reduced the #include dependency tree to a minimumJohn Wiegley2009-03-041-2/+0
|
* Added "fixated commodity pricing"John Wiegley2009-03-021-2/+3
| | | | | | | | | | | | | 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
* Added --lots-actual, to not print calc'd detailsJohn Wiegley2009-02-271-14/+23
|
* Fixes to the way annotated prices are displayedJohn Wiegley2009-02-241-12/+5
|
* Removed unused member keep_details_t::keep_baseJohn Wiegley2009-02-231-7/+4
|
* --exchange option now accepts multiple commoditiesJohn Wiegley2009-02-221-29/+0
| | | | They must be separated by a comma, and all whitespace is ignored.