summaryrefslogtreecommitdiff
path: root/src/annotate.cc
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright yearAlexis Hildebrandt2023-02-021-1/+1
| | | | [skip ci]
* Fix typos found by codespellAlexis Hildebrandt2022-07-191-1/+1
|
* Update copyright statement for 2022Alexis Hildebrandt2022-07-021-1/+1
|
* Use correct int return type for stream input operationskanreki2021-12-081-17/+17
| | | | | | | | This makes it safe to compare results to -1 to indicate EOF, regardless of whether char is considered signed or unsigned; and so eliminates compiler warnings on platforms such as ARM. Fixes bug #2058.
* Format annotations using format that can be parsedOleg Bulatov2019-11-271-1/+1
| | | | | | | | | | | | | | | | | I expect an output of `ledger print` to be consumable by ledger. But on the next journal ``` 2019/11/25 * test Foo 1 AAPL {1.00 EUR} [2019/11/24] Bar ``` it prints [19-Nov-24], which it does not understand with default options. With this patch it prints [2019/11/24].
* Drop support for gcc 2 and earlierTim Landscheidt2019-01-251-2/+2
|
* [misc] Update year in copyright notice to 2017Alexis Hildebrandt2018-01-271-1/+1
| | | | [ci skip]
* [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]
* 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}/"
* Unify debugging categoriesMartin Michlmayr2014-07-011-2/+2
| | | | | Debugging categories follow the filename, which in this case is singular (rather than plural) "account" and "amount".
* Honour date-format for lot datesMartin Michlmayr2014-05-131-1/+1
| | | | Fixes bug #383
* Bump copyright information to 2014Alexis Hildebrandt2014-02-021-1/+1
|
* fix ledger xml output, remove ledger json commandJohann Klähn2013-03-081-11/+5
| | | | | | | | | | | | As the format used by property trees to represent valid JSON and that for valid XML is too different and given that there are more requests for valid XML output I decided to pursue a quick fix and remove the json command in favor of a working xml command. See bug #782, #909, recent discussion on mailing list. JSON support is postponed until I or someone else finds time to work on this or the python bindings are more stable.
* Bump copyright information to 2013John Wiegley2013-02-181-1/+1
|
* Converted the Ledger build system to use CMakeJohn Wiegley2012-05-201-2/+2
|
* Switched to Boost.PropertyTree for XML generationJohn Wiegley2012-05-181-0/+21
|
* Never price commodities using annotated commoditiesJohn Wiegley2012-03-301-1/+1
|
* Never output calculate commodity valuation expressionsJohn Wiegley2012-03-201-6/+2
|
* Fix problems with <Adjustment> postingsJohn Wiegley2012-03-201-1/+2
|
* Fix problem with -H and lack of pricing infoJohn Wiegley2012-03-181-1/+5
| | | | Fixes #691
* Tighten up argument passing related to fn_market()John Wiegley2012-03-111-8/+8
|
* Added syntactic sugar for lot pricing: {{$500.00}}John Wiegley2012-03-101-3/+17
|
* Added the notion of "virtual costs"John Wiegley2012-03-091-1/+6
|
* Added "value" sub-directive for commodity directiveJohn Wiegley2012-03-061-19/+3
|
* Implemented annotated_commodity_t::find_priceJohn Wiegley2012-03-061-4/+65
| | | | | Most specifically, it now respects a valuation expression associated with the commodity.
* Add support for valuation expressions on commoditiesJohn Wiegley2012-03-051-11/+51
|
* Added annotation_t::operator<()John Wiegley2012-03-051-0/+28
|
* Increased file copyrights to 2012John Wiegley2012-02-291-1/+1
|
* Added casts necessary for building under Visual StudioJohn Wiegley2011-03-031-1/+1
|
* When a test fails, show the command that failedJohn Wiegley2011-02-121-1/+2
|
* Fixes for compilation as C++0x codeJohn Wiegley2011-02-041-0/+1
|
* If fixated price commodities are mixed, show themJohn Wiegley2010-06-201-13/+37
| | | | | | | | | | | 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.
* Untabified all source filesJohn Wiegley2010-06-111-32/+32
|
* Fixed the way prices and costs are print'dJohn Wiegley2010-06-071-16/+12
|
* A simple, yet significiant, optimizationJohn Wiegley2010-06-031-1/+1
| | | | | | | | Every annotated commodity is based on a "referent", or the unannotated version of that commodity. When stripping all annotations away, however, rather than simply returning the referent we were actually searching for it by name. There was no reason to do this, not to mention it was taking up to 7% of the total runtime of some reports.
* Updated copyrights to 2003-2010John Wiegley2010-03-051-1/+1
|
* Many improvements to Ledger's Python bindingsJohn Wiegley2009-11-191-2/+2
|
* Redesigned the expr_t, predicate_t, query_t classesJohn Wiegley2009-11-091-1/+1
|
* Added Python interface for commodity_tJohn Wiegley2009-11-021-3/+3
|
* Use is_annotated() method rather than "annotated"John Wiegley2009-11-021-2/+2
|
* Rewrote the way date and time I/O is managedJohn Wiegley2009-10-251-1/+1
|
* Split commodity.h/cc into three filesJohn Wiegley2009-06-241-0/+205
commodity.h - code for commodity_t annotate.h - commodity annotations pool.h - commodity pool management