summaryrefslogtreecommitdiff
path: root/src/balance.h
Commit message (Collapse)AuthorAgeFilesLines
* Use #pragma onceAlexis Hildebrandt2023-04-101-4/+1
|
* 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
|
* Change header guard names to use `INCLUDED_` prefixPhil Newton2022-04-061-3/+3
| | | | Fixes #2049
* Look up annotated amounts within balances by their displayed nameJohn Wiegley2020-03-271-0/+3
|
* Add --averaged-lot-pricesJohn Wiegley2019-12-061-0/+2
| | | | | This joins together lots of the same underlying, averaging the reported price and using the date of the oldest lot.
* Greatly simplify balance_t::operator==John Wiegley2019-03-151-8/+1
|
* Switch amounts_map to std::unordered_mapJohn Wiegley2019-03-151-1/+1
|
* Expose a new utility function for balances: sorted_amountsJohn Wiegley2019-01-301-0/+7
|
* [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]
* [ledger] Remove --cache optionAlexis Hildebrandt2015-02-181-12/+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
|
* Bump copyright information to 2013John Wiegley2013-02-181-1/+1
|
* Bug 634 Added roundto function, optimized floor and ceilingCraig Earls2013-01-301-0/+11
| | | | Fixes Bug634 by adding roundto(amount, places).
* Bug 634 and 488, Corrected behavior of floor, and added ceilingCraig Earls2012-10-251-0/+11
| | | | This is only a partial fix for 634, since rounding is not fixed.
* Converted the Ledger build system to use CMakeJohn Wiegley2012-05-201-1/+1
|
* Switched to Boost.PropertyTree for XML generationJohn Wiegley2012-05-181-1/+1
|
* Fixed sorting of equity outputJohn Wiegley2012-03-231-0/+8
|
* 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-2/+0
|
* Increased file copyrights to 2012John Wiegley2012-02-291-1/+1
|
* Untabified all source filesJohn Wiegley2010-06-111-33/+33
|
* A further simplification of -V and -XJohn Wiegley2010-06-071-3/+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-5/+4
|
* Optimized several "in_place" function in balance_tJohn Wiegley2010-05-231-16/+8
|
* Updated copyrights to 2003-2010John Wiegley2010-03-051-1/+1
|
* The Python web server now uses jQuery TablesorterJohn Wiegley2009-11-211-2/+2
|
* Added string conversion op for amounts and balancesJohn Wiegley2009-11-201-0/+9
|
* Added floored() and in_place_floor() methodsJohn Wiegley2009-11-111-0/+12
|
* Added basic foundation for XML reportingJohn Wiegley2009-11-091-0/+2
|
* Report sought magnitude when balancing errors occurJohn Wiegley2009-11-051-0/+7
|
* Whitespace fixJohn Wiegley2009-11-041-1/+1
|
* Corrected balance_t's arithmetic interfaceJohn Wiegley2009-11-021-5/+30
|
* Added serialization methods for most typeJohn Wiegley2009-10-301-0/+12
| | | | | This allows journal_t objects to be completed serialized to disk and deserialized.
* balance_t does not need to refer to const commoditiesJohn Wiegley2009-10-301-1/+1
|
* If doing math between amount and balance, simplifyJohn Wiegley2009-10-271-0/+3
|
* Restored --price option, added baseline testJohn Wiegley2009-06-261-0/+2
| | | | | | | 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.
* Move amount colorization deeper into the coreJohn Wiegley2009-06-161-1/+2
| | | | | | | | 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
* Temporarily stubbed out an inaccurate assertJohn Wiegley2009-06-151-1/+3
|
* Reduced the #include dependency tree to a minimumJohn Wiegley2009-03-041-16/+4
|
* balance_t is no longer a superclassJohn Wiegley2009-02-271-10/+9
|
* Gave round/unround/truncate all in_place_ variantsJohn Wiegley2009-02-271-3/+18
|
* Added a truncated() method for amounts and valuesJohn Wiegley2009-02-261-0/+7
| | | | | When an amount is truncated, it drops all of the extra precision and becomes exactly the value would have seen were it printed.
* Marked all strings needing internationalizationJohn Wiegley2009-02-251-5/+5
| | | | | | | | | | | | | | | | 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".
* 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