summaryrefslogtreecommitdiff
path: root/src/amount.cc
Commit message (Collapse)AuthorAgeFilesLines
* Added Python interface for commodity_tJohn Wiegley2009-11-021-2/+2
|
* Use is_annotated() method rather than "annotated"John Wiegley2009-11-021-3/+3
|
* Added serialization methods for most typeJohn Wiegley2009-10-301-0/+73
| | | | | This allows journal_t objects to be completed serialized to disk and deserialized.
* Renamed bigint_t::refc, for consistency with value_tJohn Wiegley2009-10-291-14/+14
|
* Added some whitespace for clarityJohn Wiegley2009-10-281-0/+2
|
* Fixed many compiler warnings from g++ 4.4John Wiegley2009-10-251-5/+5
|
* Restored --price option, added baseline testJohn Wiegley2009-06-261-2/+14
| | | | | | | 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.
* More refactoring for --downloadJohn Wiegley2009-06-241-4/+13
|
* Split commodity.h/cc into three filesJohn Wiegley2009-06-241-0/+2
| | | | | | commodity.h - code for commodity_t annotate.h - commodity annotations pool.h - commodity pool management
* Restored --unround, added baseline testJohn Wiegley2009-06-211-0/+3
|
* Temporarily stubbed out an inaccurate assertJohn Wiegley2009-06-151-1/+3
|
* Don't increase precision so much when dividingJohn Wiegley2009-06-151-3/+3
| | | | | | | | | Slow the increase in internal precision when dividing amounts. Use "--debug amount.convert" if you wish to see this logic in action, if a case where incorrect rounding is suspected comes up. Fixes B68FFB0D-A9A0-479C-A6C0-68853F229333
* Ignore attempts to annotate the null commodityJohn Wiegley2009-06-151-1/+1
| | | | Fixes 04C5E1CA-1B39-4214-81C7-FD5AA785308F
* 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/+0
|
* Changed many assert() calls to VERIFY()John Wiegley2009-03-041-6/+6
|
* Added "fixated commodity pricing"John Wiegley2009-03-021-0/+4
| | | | | | | | | | | | | 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-14/+21
|
* Corrected a potential invalid memory accessJohn Wiegley2009-02-281-4/+7
|
* Fix to amount unreduction (aka, 120m -> 2h)John Wiegley2009-02-271-3/+4
|
* Be smarter about trimming off trailing zeroesJohn Wiegley2009-02-271-6/+7
|
* Don't propagate display flags from cost amountsJohn Wiegley2009-02-271-4/+4
|
* Gave round/unround/truncate all in_place_ variantsJohn Wiegley2009-02-271-14/+8
|
* Refinements to amount_t validation codeJohn Wiegley2009-02-271-8/+13
|
* Allow uncommoditized amounts to +/- with an amountJohn Wiegley2009-02-251-6/+10
| | | | Thus, you can say "$100 + 10" to increase it by $10.
* Marked all strings needing internationalizationJohn Wiegley2009-02-251-48/+46
| | | | | | | | | | | | | | | | 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".
* Propagate commodity flags in costs sometimesJohn Wiegley2009-02-241-5/+3
| | | | | If a commodity has never been seen before, and it is used in a cost amount, remember the display flags.
* Be smarter about printing uncommoditized amountsJohn Wiegley2009-02-241-4/+23
|
* Fixes to the way annotated prices are displayedJohn Wiegley2009-02-241-12/+6
|
* Made commodity reduction during parsing consistentJohn Wiegley2009-02-241-5/+15
|
* Many fixes to --market and --exchangeJohn Wiegley2009-02-221-5/+18
| | | | Also, --exchange now accepted multiple, comma-separated commodities.
* Added --exchange (-x) optionJohn Wiegley2009-02-221-5/+11
| | | | | | | This is like -V, except it lets you specify the goal commodity to report in terms of, for example: reg -x CAD
* Moved amount_t::right_justify to simply ::justifyJohn Wiegley2009-02-191-14/+0
|
* Fixed several unused value and param warningsJohn Wiegley2009-02-161-1/+0
|
* Properly handle UTF-8 characters in commodity strings.John Wiegley2009-02-121-0/+15
|
* Rewrote the "entry" command. It's ALIVE!John Wiegley2009-02-111-2/+2
|
* amount_t::in_place_* now returns void. Added value_t::unreduce.John Wiegley2009-02-071-6/+3
|
* Fixed some #include ordering issues.John Wiegley2009-02-071-0/+10
|
* Only initialize the amount_t module if it hasn't been already.John Wiegley2009-02-061-9/+16
|
* Largely removed all of Ledger's use of global variables, for the REPL's sake.John Wiegley2009-02-041-52/+25
|
* Removed unneeded member variables.John Wiegley2009-02-041-8/+2
|
* Removed the binary caching code, and the XML, QIF and Gnucash parsers.John Wiegley2009-02-031-220/+0
|
* Values can now be streamed to XML, and all the types they refer to.John Wiegley2009-02-011-5/+7
|
* Corrected the way that thousands markers are output.John Wiegley2009-01-311-6/+10
|
* amount_t::is_zero() wasn't checking for '-'.John Wiegley2009-01-311-1/+1
|
* Made amount_t::is_zero() slightly more efficient.John Wiegley2009-01-311-1/+12
|
* Added a more efficient amount_t::operator==, which changed semantics slightly.John Wiegley2009-01-311-0/+12
|
* Removed the special "one" variable, and added amount_t::inverted().John Wiegley2009-01-311-6/+12
|
* Rationals based math is now passing the unit tests.John Wiegley2009-01-311-526/+58
|
* Several corrections to the way rationals are handled.John Wiegley2009-01-311-89/+107
|