summaryrefslogtreecommitdiff
path: root/src/balance.cc
Commit message (Collapse)AuthorAgeFilesLines
* include zero-amounts in balance_t::map_sorted_amountsdbear4962023-07-161-2/+4
|
* Update copyright yearAlexis Hildebrandt2023-02-021-1/+1
| | | | [skip ci]
* Update copyright statement for 2022Alexis Hildebrandt2022-07-021-1/+1
|
* Fix regression in sorted_amountsMartin Michlmayr2020-10-301-1/+2
| | | | | | | | | | Commit 557ab32 ("Expose a new utility function for balances: sorted_amounts") split out some code into a separate function. Unfortunately, in the process an "if" statement was dropped, leading to amounts being shown that shouldn't be shown because they are smaller than the display precision. Fixes #1969
* Look up annotated amounts within balances by their displayed nameJohn Wiegley2020-03-271-2/+32
|
* Add --averaged-lot-pricesJohn Wiegley2019-12-061-0/+59
| | | | | This joins together lots of the same underlying, averaging the reported price and using the date of the oldest lot.
* Change compare_by_commodity to return an integerJohn Wiegley2019-03-151-2/+5
|
* Add back some whitespace for clarityJohn Wiegley2019-01-301-1/+1
|
* Expose a new utility function for balances: sorted_amountsJohn Wiegley2019-01-301-9/+9
|
* [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}/"
* Bump copyright information to 2014Alexis Hildebrandt2014-02-021-1/+1
|
* fix ledger xml output, remove ledger json commandJohann Klähn2013-03-081-4/+2
| | | | | | | | | | | | 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
|
* Switched to Boost.PropertyTree for XML generationJohn Wiegley2012-05-181-3/+3
|
* Switch to using Boost.FormatJohn Wiegley2012-05-141-2/+2
|
* Simplified some code in xact.ccJohn Wiegley2012-03-231-9/+18
|
* Fixed sorting of equity outputJohn Wiegley2012-03-231-31/+71
|
* Always call TRACE_CTOR at the end of constructorsJohn Wiegley2012-03-201-3/+3
|
* Tighten up argument passing related to fn_market()John Wiegley2012-03-111-2/+2
|
* Removed value_t::price and balance_t::priceJohn Wiegley2012-03-071-10/+0
|
* Increased file copyrights to 2012John Wiegley2012-02-291-1/+1
|
* Untabified all source filesJohn Wiegley2010-06-111-18/+18
|
* A further simplification of -V and -XJohn Wiegley2010-06-071-4/+2
| | | | | | | | 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.
* amount_t::print and value_t::print now use flagsJohn Wiegley2010-06-071-9/+8
|
* Updated copyrights to 2003-2010John Wiegley2010-03-051-1/+1
|
* Refactored some comparison helper classesJohn Wiegley2010-02-051-1/+2
|
* Many improvements to Ledger's Python bindingsJohn Wiegley2009-11-191-3/+3
|
* Added basic foundation for XML reportingJohn Wiegley2009-11-091-0/+8
|
* Removed most #if 0 blocks and callout commentsJohn Wiegley2009-10-311-3/+2
|
* Whitespace fixJohn Wiegley2009-10-301-2/+4
|
* Fixed a display issue with the balance reportJohn Wiegley2009-10-271-1/+5
|
* Restored --price option, added baseline testJohn Wiegley2009-06-261-0/+10
| | | | | | | This option reports only in terms of the annotated price of the commodities involved, otherwise it reports the amounts themselves. It can be used in conjunction with other reports, as it applies to the displayed amounts, not the actual amounts being calculated.
* Split commodity.h/cc into three filesJohn Wiegley2009-06-241-0/+1
| | | | | | commodity.h - code for commodity_t annotate.h - commodity annotations pool.h - commodity pool management
* Move amount colorization deeper into the coreJohn Wiegley2009-06-161-2/+4
| | | | | | | | This is necessary in order to redden negative amounts correctly under all circumstances, such as component amounts of a multi-commodity balance. Fixes 727B2DF8-A2A1-4716-9C15-547F20D5F933
* Enabled use of pre-compiled headers by defaultJohn Wiegley2009-03-101-0/+2
|
* Reduced the #include dependency tree to a minimumJohn Wiegley2009-03-041-1/+23
|
* Marked all strings needing internationalizationJohn Wiegley2009-02-251-10/+10
| | | | | | | | | | | | | | | | 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".
* Many fixes to both --market and --exchangeJohn Wiegley2009-02-231-8/+9
|
* Added --exchange (-x) optionJohn Wiegley2009-02-221-2/+4
| | | | | | | This is like -V, except it lets you specify the goal commodity to report in terms of, for example: reg -x CAD
* Fixed the way values are justified for printingJohn Wiegley2009-02-221-5/+5
|
* Restored the --budget optionJohn Wiegley2009-02-201-1/+1
|
* Moved amount_t::right_justify to simply ::justifyJohn Wiegley2009-02-191-3/+10
|
* Properly handle UTF-8 characters in commodity strings.John Wiegley2009-02-121-9/+3
|
* Largely removed all of Ledger's use of global variables, for the REPL's sake.John Wiegley2009-02-041-4/+5
|
* Removed the binary caching code, and the XML, QIF and Gnucash parsers.John Wiegley2009-02-031-10/+0
|
* Values can now be streamed to XML, and all the types they refer to.John Wiegley2009-02-011-0/+10
|
* Increased copyright range to include 2009.John Wiegley2009-01-201-1/+1
|