Alexis Hildebrandt
6a5d6a88cd
Fix crash when accessing the transaction code via post.xact.code using python
...
ledger would abort with the following error message:
TypeError: No Python class registered for C++ class boost::optional<std::string>
The changes pass a CallPolicy to make_getter when adding the transaction
code property for python, so that the correct to_python conversion is
made. For details see:
http://www.boost.org/doc/libs/1_52_0/libs/python/doc/v2/faq.html#topythonconversionfailed
2012-11-19 23:00:58 +01:00
Johann Klähn
e824070b4a
fix bucket directive (bug 765)
...
This was caused by both 'A' and 'bucket' using
default_account_directive. This function was still stripping the 'A'
directive, so the first character of the account name used with 'bucket'
was cut off. Maybe the code for the other directives should be changed
accordingly for consistency (put line + 1 in call instead of function).
2012-10-23 12:13:22 +02:00
Bradley M. Kuhn
bf7375db11
Rounding is different for balance totals vs. postings when using posting costs.
...
test/regress/CAE63F5C-b.test and test/regress/CAE63F5C-c.test should both
pass, but test/regress/CAE63F5C-c.test does not, because the total line of
$6.46 is rounded wrong; it should be $6.45.
There seems to be different rounding occurring for totals vs. postings.
This seems to be related to Bug #492 .
2012-09-30 14:53:05 -04:00
Paolo Capriotti
e56a4ffef0
Running totals on a report including automated transactions are computed with extra precision,
...
resulting in balances differing from the sum of their components.
2012-09-30 14:46:51 -04:00
John Wiegley
afc023406a
Always store absolute paths internally
2012-08-02 16:13:58 -05:00
John Wiegley
4681e58d7f
Converted the Ledger build system to use CMake
2012-05-20 04:48:05 -05:00
John Wiegley
ad7ace902c
Allow --invert to work with --monthly
...
Fixes #770
2012-04-06 01:32:38 -05:00
John Wiegley
931d6ff3f4
Fix to Python value() method handling
2012-03-30 00:51:06 -05:00
John Wiegley
bf66abc258
Added another Python support regression test
2012-03-30 00:51:06 -05:00
John Wiegley
413a392aa9
Added the first Python support regression test
2012-03-30 00:51:06 -05:00
John Wiegley
8e8c2904f5
Never price commodities using annotated commodities
2012-03-30 00:51:05 -05:00
Martin Michlmayr
3a159a1344
Add a regression test
2012-03-29 22:56:56 +01:00
Martin Michlmayr
362fad5925
Add more tests
2012-03-27 20:16:17 +01:00
John Wiegley
5addacfbf2
Fixed an interaction with equity and virtual accounts
...
Fixes #686
2012-03-22 23:42:18 -05:00
John Wiegley
2bbcbbf78d
Renamed F32DBEF1.test to CEECC0B0.test
2012-03-22 17:34:43 -05:00
Martin Michlmayr
6ff2257f30
Simply regression tests by using $FILE
2012-03-22 21:53:53 +00:00
Martin Michlmayr
62943c6005
Add more test cases
2012-03-22 21:48:50 +00:00
Martin Michlmayr
10e312cb78
Add more regression tests
2012-03-22 19:41:06 +00:00
Martin Michlmayr
c69701cf81
Add some regression tests
2012-03-22 18:27:04 +00:00
John Wiegley
e3248ee5a6
Fix problems with <Adjustment> postings
2012-03-20 04:56:03 -05:00
John Wiegley
f76d458ab7
Strip annotations in display_filter_posts
...
Fixes #718
2012-03-20 03:15:42 -05:00
John Wiegley
078c838007
Added regression test for A560FDAD
2012-03-19 22:30:55 -05:00
John Wiegley
95ef2e3b65
Added regression test
2012-03-19 03:51:19 -05:00
John Wiegley
e2a22cb8c2
Allow --input-date-format to specify separators
...
Fixes #650
2012-03-19 03:51:07 -05:00
John Wiegley
cd50fe0547
More improvements to nail_down; fixes #715
2012-03-19 00:41:32 -05:00
John Wiegley
20edb3a340
Fixed bug relating to historical pricing
...
Fixes #681
2012-03-18 02:33:25 -05:00
John Wiegley
47d7f5a43b
Fix problem with -H and lack of pricing info
...
Fixes #691
2012-03-18 02:25:14 -05:00
John Wiegley
430ad07db1
Simplified a regression test
2012-03-17 07:02:31 -05:00
John Wiegley
bc31e4838b
Fixed #711 : Parsing of alias directive
2012-03-17 07:02:03 -05:00
John Wiegley
2aa37bca36
Added regression test for A8FCC765
2012-03-17 07:01:51 -05:00
John Wiegley
6305855997
Don't allow trailing ws in abbrev. account segments
...
Fixes #358
2012-03-16 05:30:34 -05:00
John Wiegley
2605d8a711
Improved error reporting for bad account names
...
Fixes #374
2012-03-16 04:29:35 -05:00
John Wiegley
7462d09b21
Correct parsing of automated xact expressions
...
Fixes #458
2012-03-16 04:09:21 -05:00
John Wiegley
20c076dff9
Improved error reports about leading whitespace
2012-03-16 03:50:40 -05:00
John Wiegley
dc91d4f1e6
Added regression test for #584
2012-03-16 03:12:18 -05:00
John Wiegley
49ec40a939
pricedb was outputting redundant prices
...
Fixes #704
2012-03-16 03:09:13 -05:00
John Wiegley
11067d9cc6
Unexpected initial whitespace is an error (again)
...
Fixes #565
2012-03-16 02:39:42 -05:00
John Wiegley
610a3e1709
Don't map_prices if price commodity matches source
...
Fixes #680
2012-03-15 04:58:53 -05:00
John Wiegley
d9fc09097d
Added regression test for #438
2012-03-14 17:36:00 -05:00
John Wiegley
fbcbbeb987
Added two regressions tests from Thierry Daucourt
2012-03-14 17:21:21 -05:00
John Wiegley
ed42a7ebfe
Allow payee names to contain multiple spaces
2012-03-12 05:48:10 -05:00
John Wiegley
363670d35b
Tighten up argument passing related to fn_market()
2012-03-11 03:55:25 -05:00
John Wiegley
2303aa993c
Allow balances to be passed to nail_down
...
Fixes #679
2012-03-11 03:06:50 -05:00
John Wiegley
0d9d845338
Corrected a rounding error in nail_down
...
Fixes #678
2012-03-11 03:06:03 -05:00
John Wiegley
2df8edc71c
Improved the behavior of -X
2012-03-09 20:02:53 -06:00
John Wiegley
ca8f702a1b
Added amount_t::commodity_ptr()
2012-03-09 03:25:53 -06:00
John Wiegley
8d6bf11334
All tests are working again but one
2012-03-05 05:03:52 -06:00
John Wiegley
5d8cb30774
Implemented first cut at price conversion logic
2012-03-05 05:03:52 -06:00
John Wiegley
5517871144
Corrected problem with parsing of leap days
2012-02-28 21:19:36 -06:00
John Wiegley
9376b0f7b6
Corrected behavior of >= and <=
2012-02-28 04:02:24 -06:00