John Wiegley
b1107f85ae
Removed value_t::price and balance_t::price
2012-03-07 10:32:24 -06:00
John Wiegley
72b1a948de
Fixes to value_t to Python conversion
2012-03-01 17:45:25 -06:00
John Wiegley
e2afc783db
Increased file copyrights to 2012
2012-02-29 22:32:23 -06:00
John Wiegley
9376b0f7b6
Corrected behavior of >= and <=
2012-02-28 04:02:24 -06:00
John Wiegley
bc9ff7095f
Introduced a new SCOPE expression terminal
2012-02-20 17:20:22 -06:00
John Wiegley
a19b541dd9
Removed unneeded default cases
2012-02-17 15:15:32 -06:00
John Wiegley
8887fe9fa9
Removed unneeded break statements
2012-02-17 15:09:32 -06:00
John Wiegley
95717c9494
Added a missing case clause
2012-02-17 15:09:31 -06:00
John Wiegley
f0791bbd72
Cleanup whitespace
2011-08-18 14:48:38 -04:00
John Wiegley
65b3a778e2
value_t::print uses an output buffer now
...
This is so that it plays nicely with straccstream.
2011-07-17 16:23:07 -05:00
John Wiegley
8da603cb81
Correct argument order for several exceptions
2011-07-17 16:22:14 -05:00
John Wiegley
7d005b8d98
Balances and sequences can be compared to amounts
2010-06-22 01:27:05 -04:00
John Wiegley
4a44218da1
For value_t, use boost::any to refer to objects
2010-06-13 03:55:08 -04:00
John Wiegley
44a5103e1c
Moved value_t::label() to value.cc
2010-06-13 03:54:36 -04:00
John Wiegley
f3fa011d39
Improved support for value_t::in_place* functions
2010-06-13 03:54:10 -04:00
John Wiegley
dea2aed0b5
Untabified all source files
2010-06-11 17:02:25 -04:00
John Wiegley
92d2eb9574
Use ptr_deque for value_t::sequence_t
...
This is to work around undefined behavior according to the Standard,
[lib.res.on.functions]/2:
"In particular, the effects are undefined in the following cases: [..]
- if an incomplete type (3.9) is used as a template argument when
instantiating a template component."
2010-06-10 16:32:24 -04:00
John Wiegley
77c5df4053
Errors involving value objects provide more context
2010-06-10 08:16:59 -04:00
John Wiegley
da2f415f14
In value_t::print, pass along display flags
2010-06-09 06:36:40 -04:00
John Wiegley
be6cef93c4
A further simplification of -V and -X
...
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.
2010-06-07 09:49:17 -04:00
John Wiegley
a4d4f99794
amount_t::print and value_t::print now use flags
2010-06-07 08:32:13 -04:00
John Wiegley
16f799767c
Value expression sequences are now comparable
...
Fixes #228 / ED9388D7-E523-40EB-841B-9AE9BAA70329
2010-06-05 03:26:43 -04:00
John Wiegley
d5ea3080a7
Allow null values to be cast to int and string
2010-05-30 03:19:09 -06:00
John Wiegley
7ec52d2b39
Comparison of boolean values is now allowed
...
true > false
2010-05-30 02:16:32 -06:00
John Wiegley
66a26252df
Corrected error message text to be consistent
2010-05-30 02:15:45 -06:00
John Wiegley
2d28b34ff3
Allow expr_t& to be passed in a value_t
2010-05-08 02:00:35 -04:00
John Wiegley
7e79cd82cd
Corrected a case for value < value
2010-03-06 00:58:05 -05:00
John Wiegley
fd4fa8a114
Change an exception test to a plain if
2010-03-05 22:14:14 -05:00
John Wiegley
ab416f759f
Updated copyrights to 2003-2010
2010-03-05 22:14:10 -05:00
John Wiegley
6870c54644
Refactored some comparison helper classes
2010-02-05 00:00:38 -05:00
John Wiegley
5d4a0a39be
The Python web server now uses jQuery Tablesorter
2009-11-21 02:06:01 -05:00
John Wiegley
4e30fcdf40
Many improvements to Ledger's Python bindings
2009-11-19 22:24:24 -05:00
John Wiegley
9a389650ea
Allow ! and - operators on sequence values
2009-11-18 16:56:58 -05:00
John Wiegley
b2ba07b90c
Fixed several time and date duration type uses
2009-11-17 21:28:43 -05:00
John Wiegley
7a44791221
Optimization in the formatting of string values
2009-11-14 02:49:38 -05:00
John Wiegley
2986bc779e
Stylistic change: assert(0) -> assert(false)
2009-11-13 01:48:32 -05:00
John Wiegley
67c9cf134d
Added --date, similar to --account and --payee
...
This lets you do things like store a date as the value of a tag, then
run:
ledger --date='has_tag("Foo") ? to_date(tag("Foo")) : date' reg
2009-11-11 21:32:32 -05:00
John Wiegley
afe87280e0
Added floored() and in_place_floor() methods
2009-11-11 03:39:53 -05:00
John Wiegley
7cd37b1d50
Moving the #include of unistring.h into format.h
2009-11-10 18:43:38 -05:00
John Wiegley
6cdb79e2a6
XML reporting now works via the "xml" command
2009-11-09 03:42:35 -05:00
John Wiegley
2c80227339
Added basic foundation for XML reporting
2009-11-09 02:17:26 -05:00
John Wiegley
5e3f3d7f47
Report sought magnitude when balancing errors occur
2009-11-05 17:43:28 -05:00
John Wiegley
09ace752d6
Added missing call to _dup() in value_t::in_place_cast
2009-11-05 05:11:50 -05:00
John Wiegley
7ca80112fc
Change the value_t::POINTER type to value_t::SCOPE
...
scope_t pointers are the only kind that are ever stored in value
objects, so there was no need to make it generic and use boost::any.
2009-10-30 17:57:29 -04:00
John Wiegley
432be9e989
Removed unnused parameter to value_t::print
2009-10-27 22:25:13 -04:00
John Wiegley
aae134f692
Fixed a display issue with the balance report
2009-10-27 19:01:55 -04:00
John Wiegley
12616dd030
Fixed an error with post-simplified math
2009-10-27 17:30:34 -04:00
John Wiegley
3ea7fbd5f6
If doing math between amount and balance, simplify
2009-10-27 08:30:59 -04:00
John Wiegley
1f379eff70
Fixed some debug code
2009-10-27 08:30:59 -04:00
John Wiegley
a8768587c8
Allow any amount to be multipled by another
...
The result carries the commodity of the first amount, or the second if
the first had no commodity.
2009-10-27 08:30:59 -04:00