summaryrefslogtreecommitdiff
path: root/amount.cc
Commit message (Collapse)AuthorAgeFilesLines
* The code is compiling again, but it's far from being able to run yet.John Wiegley2008-05-081-1/+11
|
* Migrated over both code and build environment from was-v3.0 branch.John Wiegley2008-05-081-1535/+920
|
* Fixes to the commodity comparison logic.John Wiegley2008-04-131-6/+8
|
* *** empty log message ***John Wiegley2008-04-131-1/+1
|
* Reworked the way date/times are handled.John Wiegley2008-04-131-25/+26
|
* Several fixes to lot price handling.John Wiegley2008-04-131-4/+9
|
* Further refinement of commodity lot information.John Wiegley2008-04-131-7/+71
|
* *** empty log message ***John Wiegley2008-04-131-0/+34
|
* *** empty log message ***John Wiegley2008-04-131-33/+44
|
* Tons of corrections and fixes to value expressions and lot figures.John Wiegley2008-04-131-4/+38
|
* *** empty log message ***John Wiegley2008-04-131-5/+24
|
* *** empty log message ***John Wiegley2008-04-131-0/+23
|
* *** empty log message ***John Wiegley2008-04-131-158/+109
|
* *** empty log message ***John Wiegley2008-04-131-1/+2
|
* Added --ansi and --ansi-invert options.John Wiegley2008-04-131-6/+6
|
* Added much better error location.John Wiegley2008-04-131-19/+30
|
* Added a DATETIME value type.John Wiegley2008-04-131-26/+32
|
* *** empty log message ***John Wiegley2008-04-131-16/+23
|
* *** empty log message ***John Wiegley2008-04-131-2/+6
|
* *** empty log message ***John Wiegley2008-04-131-97/+166
|
* Began support for improved commodity handling.John Wiegley2008-04-131-16/+45
|
* Began support for improved commodity handling.John Wiegley2008-04-131-158/+432
|
* (read_binary_journal): Fixed a tiny memory leak when reading from aJohn Wiegley2008-04-131-0/+177
| | | | binary cache.
* Checked in all major updates.John Wiegley2008-04-131-73/+115
|
* (amount_t::valid): Don't verify the commodity as being non-null, sinceJohn Wiegley2008-04-131-10/+14
| | | | | | NULL is a perfectly valid value for a commodity (it just means null_commodity). Also, never use commodity_->member, but always commodity().member.
* Removed Python integration support.John Wiegley2008-04-131-165/+0
|
* *** empty log message ***John Wiegley2008-04-131-2/+2
|
* Moved the setting of time quantities to the commodity initializationJohn Wiegley2008-04-131-0/+20
| | | | section.
* (amount_t::value): Corrected a problem with commodity rounding afterJohn Wiegley2008-04-131-8/+23
| | | | | | | | market values are determined (was using the wrong commodity's precision value). (commodity_t::value): Fixed the market value calculation algorithm, which was very broken (but only seemed to show up if the price history was very small).
* (find_commodity): Don't copy over the NOMARKET flag from the defaultJohn Wiegley2008-04-131-1/+2
| | | | commodity.
* (parse): Allow "-$100.00" as the equivalent of "$-100.00".John Wiegley2008-04-131-2/+12
|
* (amount_t::parse): Only set the SUFFIXED flag if there is actually aJohn Wiegley2008-04-131-1/+2
| | | | commodity symbol.
* (parse_conversion): When defining a commodity conversion, always markJohn Wiegley2008-04-131-1/+2
| | | | | the larger unit as having no market value (the market price is determined by looking up the base commodity and then multiplying).
* (value): Use `std::map<>::lower_bound' to search for the nearest priceJohn Wiegley2008-04-131-6/+11
| | | | | item in a commodity's history list. This is much more efficient than doing a reverse linear search.
* *** empty log message ***John Wiegley2008-04-131-4/+4
|
* (parse): A fix to the way commodity flags are applied to newly parsedJohn Wiegley2008-04-131-7/+26
| | | | | commodities. This was needing for an edge-case involving commodities that first appears as part of the cost (@ SPEC) of a transaction.
* Changes to support building with gcc 2.95.John Wiegley2008-04-131-0/+11
|
* (AMOUNT_CMP_AMOUNT): Fixed a very serious error in basic amount math,John Wiegley2008-04-131-1/+1
| | | | when lhs is zero.
* Added preliminary support for OFX, using libofx. Needs muchJohn Wiegley2008-04-131-3/+3
| | | | real-world testing.
* (operator/): Added a more complete divide-by-zero check.John Wiegley2008-04-131-1/+1
|
* Added commodity_t::default_commodity. Initialize the same.John Wiegley2008-04-131-2/+4
|
* *** empty log message ***John Wiegley2008-04-131-12/+10
|
* updated to 2.02John Wiegley2008-04-131-0/+3
|
* updated to version 2.0John Wiegley2008-04-131-412/+1117
|
* changesJohn Wiegley2008-04-131-915/+417
|
* fixed several segfaults (using new option-scrambler test harness)John Wiegley2004-09-271-2/+4
|
* made several of the buffers used non-staticJohn Wiegley2004-09-261-6/+5
|
* fixed printing of amounts that have a null commodity (was always precision 0)John Wiegley2004-09-241-4/+14
|
* improved error checking in parser, in case parts of an amount are missingJohn Wiegley2004-09-241-8/+12
|
* fixed a rather obscure memory bug, which also simplified some codeJohn Wiegley2004-09-241-29/+8
|