summaryrefslogtreecommitdiff
path: root/src/commodity.cc
Commit message (Collapse)AuthorAgeFilesLines
* Converted the Ledger build system to use CMakeJohn Wiegley2012-05-201-1/+1
|
* Switched to Boost.PropertyTree for XML generationJohn Wiegley2012-05-181-19/+12
|
* Never price commodities using annotated commoditiesJohn Wiegley2012-03-301-9/+8
|
* Improved some error messagesJohn Wiegley2012-03-291-1/+1
|
* Fix problems with <Adjustment> postingsJohn Wiegley2012-03-201-0/+2
|
* Extend commodity_t::compare_by_commodity::operator()John Wiegley2012-03-191-0/+9
|
* Don't map_prices if price commodity matches sourceJohn Wiegley2012-03-151-2/+4
| | | | Fixes #680
* Tighten up argument passing related to fn_market()John Wiegley2012-03-111-40/+38
|
* Use Boost.TupleJohn Wiegley2012-03-091-7/+7
|
* Added nail_down() for pinning market value exprsJohn Wiegley2012-03-081-0/+9
|
* Corrected calculation of market valuation expressionsJohn Wiegley2012-03-081-6/+12
|
* Added "value" sub-directive for commodity directiveJohn Wiegley2012-03-061-0/+26
|
* Changed the category of a few DEBUG statementsJohn Wiegley2012-03-061-2/+4
|
* All tests are working again but oneJohn Wiegley2012-03-051-13/+41
|
* Implemented first cut at price conversion logicJohn Wiegley2012-03-051-1/+3
|
* Changes to get all the code to compileJohn Wiegley2012-03-051-22/+32
|
* Switched to using Boost.Graph for commodity pricingJohn Wiegley2012-03-051-403/+39
|
* Increased file copyrights to 2012John Wiegley2012-02-291-1/+1
|
* Fixed many Clang type conversion warnings with static_castJohn Wiegley2012-02-171-2/+2
|
* Fixes for variable shadowing (6/28)John Wiegley2012-02-171-1/+1
|
* Cleanup whitespaceJohn Wiegley2011-08-181-2/+2
|
* Fixes for compilation as C++0x codeJohn Wiegley2011-02-041-1/+0
|
* Based symbol_needs_quotes an invalid_chars (#386)John Wiegley2010-07-291-32/+32
|
* Don't elide quotes for all-digit commoditiesJohn Wiegley2010-06-141-3/+7
|
* Untabified all source filesJohn Wiegley2010-06-111-161/+161
|
* New display flag AMOUNT_PRINT_ELIDE_COMMODITY_QUOTESJohn Wiegley2010-06-091-0/+11
| | | | | | | | 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-6/+1
| | | | | | | | 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.
* Corrected a verification testJohn Wiegley2010-06-051-1/+3
|
* commodity_t::find_price now uses memoizationJohn Wiegley2010-06-041-11/+100
| | | | | This reduces the slowdown of using -V and -X from 36x in some cases down to around 4-5x (for a debug build).
* any and all do not need to be reserved tokensJohn Wiegley2010-06-041-3/+1
|
* More debug code cleanupJohn Wiegley2010-06-041-25/+25
|
* Made the behavior of -V a bit more rationalJohn Wiegley2010-06-041-0/+4
| | | | It now only values non-primary commodities in terms of primary ones.
* Reorganized some debug codeJohn Wiegley2010-06-041-17/+20
|
* Simplified some debug codeJohn Wiegley2010-06-031-33/+16
|
* Avoid unnecessary object copying when using foreachJohn Wiegley2010-06-031-1/+1
|
* Changed --european option to --decimal-commaJohn Wiegley2010-06-011-5/+5
| | | | Fixes #211 / 1736ACA5-5DE6-4826-AEB4-DB5B2A2217AC
* Changed a commentJohn Wiegley2010-06-011-1/+1
|
* Added any() and all() value expression macrosJohn Wiegley2010-05-081-1/+3
| | | | | | | | | | | | | | | | | | | | any() matches an expression against every post in a transaction or account, and returns true if any of them are true. all() tests if all are true. For example: ledger -l 'account =~ /Expense/ & any(account =~ /MasterCard/)' reg This reports every posting affecting an Expense account (regex match), but only if some other posting in the same transaction affects the MasterCard account. Both functions also take a second boolean argument. If it is false, the "source" posting is not considered. For example: ledger -l 'any(/x/, false)' This matches any posting where a *different* posting in the same transaction contains the letter 'x'.
* Updated copyrights to 2003-2010John Wiegley2010-03-051-1/+1
|
* Refactored some comparison helper classesJohn Wiegley2010-02-051-2/+2
|
* Many improvements to Ledger's Python bindingsJohn Wiegley2009-11-191-5/+5
|
* Fixed several time and date duration type usesJohn Wiegley2009-11-171-1/+2
|
* XML reporting now works via the "xml" commandJohn Wiegley2009-11-091-4/+40
|
* Added basic foundation for XML reportingJohn Wiegley2009-11-091-0/+11
|
* Throw an error if UTF-8 encoding is incorrectJohn Wiegley2009-11-071-2/+2
|
* Added Python interface for commodity_tJohn Wiegley2009-11-021-6/+6
|
* Changed protection level of many parts of commodity_tJohn Wiegley2009-11-021-25/+21
|
* Use is_annotated() method rather than "annotated"John Wiegley2009-11-021-4/+4
|
* Added a --european flag, to use commas for decimalsJohn Wiegley2009-11-021-0/+2
| | | | | | 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.
* Removed most #if 0 blocks and callout commentsJohn Wiegley2009-10-311-6/+0
|