summaryrefslogtreecommitdiff
path: root/src/commodity.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* Added TRUE_CURRENT_TIME() macroJohn Wiegley2009-10-281-1/+1
| | | | Because CURRENT_TIME() can now be a past date if --now is used.
* Fixed many compiler warnings from g++ 4.4John Wiegley2009-10-251-5/+4
|
* Reject downloaded quotes price in the wrong commodityJohn Wiegley2009-06-281-1/+4
|
* More refactoring for --downloadJohn Wiegley2009-06-241-20/+36
|
* Split commodity.h/cc into three filesJohn Wiegley2009-06-241-543/+20
| | | | | | commodity.h - code for commodity_t annotate.h - commodity annotations pool.h - commodity pool management
* Restored --download, although not done yetJohn Wiegley2009-06-241-13/+128
| | | | | | 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.
* Revert "Added % suffix operator, as in "$1.00 * 10%""John Wiegley2009-06-211-2/+2
| | | | This reverts commit 0e9f782a05ab9bc892af40abef84346a16d3baec.
* The -X option now accepts price settingsJohn Wiegley2009-06-181-12/+21
| | | | | | | 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'
* Allow an amount to be zero, even if cost is non-zeroJohn Wiegley2009-06-161-2/+4
| | | | | | | The only real change is that exchanges of zero-amount will not result in any exchange at all, just the "motions". Fixes 6DAB9FE3-1399-4727-9AB1-FE413FB85A03
* Added % suffix operator, as in "$1.00 * 10%"John Wiegley2009-05-261-2/+2
|
* Added a missing * operationJohn Wiegley2009-03-151-1/+1
|
* Enabled use of pre-compiled headers by defaultJohn Wiegley2009-03-101-0/+2
|
* Reduced the #include dependency tree to a minimumJohn Wiegley2009-03-041-0/+1
|
* 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.