John Wiegley
fcd7f4f73b
Removed "total_cost" valexpr, and value_t::cost
...
Since cost reports are now calculated by setting the amount_ expression,
there is no need to track a separate "total cost" entity.
2009-02-15 16:26:26 -04:00
John Wiegley
e0e181d2af
Made (un)reduce rvalue methods more consistent
...
They names were changed from reduce/unreduce to reduced/unreduced, since
they return the modified value. This is more consistent with the naming
of rounded/rounded.
2009-02-12 20:44:46 -04:00
John Wiegley
3f7104e9be
Removed the balance_pair_t type, since it's now an unneeded abstraction.
...
This type was a holdback from the days before the amount_expr was used
everywhere to determine a transaction's value.
2009-02-09 14:54:42 -04:00
John Wiegley
fccf7e1cb5
Fixes to the new Python/scope integration code.
2009-02-08 23:56:28 -04:00
John Wiegley
e0b108ff3a
Attribute lookup on a Value object which is a Scope now searches the scope.
2009-02-08 21:17:23 -04:00
John Wiegley
e003502193
Moved several #includes to facilitate the use of pre-compiled headers.
2009-02-08 19:05:06 -04:00
John Wiegley
cb0faac58d
Removed a great many unnecessary Boost.Python files.
2009-02-07 22:49:53 -04:00
John Wiegley
2d941730b1
Largely removed all of Ledger's use of global variables, for the REPL's sake.
2009-02-04 19:55:27 -04:00
John Wiegley
c6d3cce6d5
Added __str__ and __repr__ methods for ledger.Value.
2009-02-03 19:06:56 -04:00
John Wiegley
3434650848
Removed the binary caching code, and the XML, QIF and Gnucash parsers.
2009-02-03 12:22:10 -04:00
John Wiegley
e9ff5caa13
Rationals based math is now passing the unit tests.
2009-01-31 04:25:05 -04:00
John Wiegley
e0dd2cd0a4
Changed to using rational numbers instead of integer approximations.
...
As a result, dependency on the gdtoa was dropped, and dependency on mpfr was
added.
2009-01-30 19:30:16 -04:00
John Wiegley
f1257cbc3e
Removed all dependency on gdtoa.
2009-01-30 16:19:31 -04:00
John Wiegley
1aa1ff1977
Fully exported the value_t type to Python.
...
Now this code works from a value expression:
def myvalue(incoming):
import ledger
x = ledger.Value("100.23")
print x.type()
return incoming + x
2009-01-28 17:17:44 -04:00
John Wiegley
fc8dd14467
Create a py_value module, for translating value_t objects to/from Python.
2009-01-23 15:59:01 -04:00