summaryrefslogtreecommitdiff
path: root/src/commodity.h
Commit message (Collapse)AuthorAgeFilesLines
* Refactor basic_flags_t to ledger::flags::basic_tAlexis Hildebrandt2023-04-121-2/+2
|
* Use #pragma onceAlexis Hildebrandt2023-04-101-4/+1
|
* Update copyright yearAlexis Hildebrandt2023-02-021-1/+1
| | | | [skip ci]
* Update copyright statement for 2022Alexis Hildebrandt2022-07-021-1/+1
|
* Change header guard names to use `INCLUDED_` prefixPhil Newton2022-04-061-3/+3
| | | | Fixes #2049
* Change compare_by_commodity to return an integerJohn Wiegley2019-03-151-1/+1
|
* [misc] Update year in copyright notice to 2017Alexis Hildebrandt2018-01-271-1/+1
| | | | [ci skip]
* The "format" directive for commodities now disables "style observation"John Wiegley2018-01-011-0/+1
|
* [misc] Update year in copyright notice to 2017Alexis Hildebrandt2017-01-051-1/+1
| | | | [ci skip]
* [misc] Update year in copyright notice to 2016Alexis Hildebrandt2016-01-021-1/+1
| | | | [ci skip]
* [ledger] Remove --cache optionAlexis Hildebrandt2015-02-181-61/+0
| | | | and all boost serialisation related code.
* Bump copyright notice to 2015Alexis Hildebrandt2014-12-271-1/+1
| | | | | | The following script makes it a no-brainer: % NEXT_YEAR=2015; ag -l 'Copyright.*Wiegley' \ | xargs sed -i '' -e "s/\(Copyright.*\)-20[0-9]\{2\}/\1-${NEXT_YEAR}/"
* Bump copyright information to 2014Alexis Hildebrandt2014-02-021-1/+1
|
* And const directives in account.h and commodity.h to allow build in OS X ↵Craig Earls2013-10-301-1/+1
| | | | Mavericks.
* Bump copyright information to 2013John Wiegley2013-02-181-1/+1
|
* Merge pull request #132 from enderw88/bug514-sort-accounts-and-commoditiesJohn Wiegley2013-01-291-0/+7
|\ | | | | Fixes bug 514. accounts and commodities output now sorts
| * Fixes bug 514. accounts and commodities output now sortsCraig Earls2013-01-291-0/+7
| | | | | | | | updated tests included.
| * Revert "Bug551 fixed, commodities and accounts now sort"John Wiegley2013-01-161-7/+0
| | | | | | | | This reverts commit 67a598f6ff3b9b19b08af108c8bfe26064728457.
| * Bug551 fixed, commodities and accounts now sortCraig Earls2013-01-071-0/+7
| | | | | | | | | | | | Added two compare structs for std::map to use. I tried to override the < operator got a clean compile but map wasn't picking it up, I couldn't figure out why so I took the less elegant route.
* | Add --time-colon optionAlexis Hildebrandt2012-11-101-0/+2
|/ | | | | | | | | The --time-colon option will display the value for a seconds based commodity as real hours and minutes. For example 8100 seconds by default will be displayed as 2.25 whereas with the --time-colon option they will be displayed as 2:15.
* Converted the Ledger build system to use CMakeJohn Wiegley2012-05-201-3/+3
|
* Switched to Boost.PropertyTree for XML generationJohn Wiegley2012-05-181-2/+2
|
* 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
|