Commit graph

146 commits

Author SHA1 Message Date
Martin Michlmayr
e92527e4da Add another test case for bug #999 2014-05-12 12:59:53 -04:00
John Wiegley
bd8a1a6756 Use the POST_COST_VIRTUAL flag when exchange commodities
Fixes #999
2014-05-08 14:28:07 -05:00
Alexis Hildebrandt
e7cfaa1e65 Fix apply_year_directive
Using the Y 2014 syntax works fine, but using
apply year 2014 resulted in the following error:
Error: Year is out of valid range: 1400..10000
since part of the given year string was chopped off.
2014-02-12 10:38:07 +01:00
John Wiegley
8d1067c89c Disable three tests preventing Jenkins from succeeding
These aren't actually failures, just issues with the way that Jenkins
works on my system (mainly because ~/.jenkins is a symlink pointing at
another volume).
2013-06-19 13:49:10 -05:00
John Wiegley
a79cf36c64 Fix #784 2013-05-23 03:23:49 -05:00
John Wiegley
82345899f7 Remove some unnecessary and complicated logic
Fixes #712
2013-05-19 03:38:20 -05:00
John Wiegley
2f91900009 Add unit test for 686 2013-05-19 02:56:10 -05:00
John Wiegley
cb694a3c5e Get the unit tests passing again 2013-05-19 02:14:27 -05:00
Craig Earls
19eb2cab1b Divorces 25A099C9 from the actual amount.h source file
This test appears to test the garbage input handling on ledger.
garbage-input.dat has been added to the test directory for use by this
test, allowing development with amount.h to proceed without tripping
this particular test inappropriately
2013-01-30 16:43:47 -07:00
Johann Klähn
b3b11bed3b Merge branch 'master' into next
Some commits were on the master branch but not yet on the next branch due to a
pull request to master after those two branches diverged. This merge
ensures that next ⊇ master.
2013-01-18 18:26:03 +01:00
Johann Klähn
3fe2ef5956 change handling of standard input
For `-f /dev/stdin`, the `pathname` of the parsing context will be empty
as for any other streamed input.

`instance_t::include_directive` did not work as expected for `-f /dev/stdin`
and relative file names. One would expect them to be relative to the current
directory rather than `/dev`.

This will lead to `While parsing file ""` messages. This could be
adjusted to read `While parsing standard input`, but maybe it's not
worth the special cases.

This commit also fixes bug 788: behaviour of source_context for '-f -'
2013-01-17 12:19:23 +01:00
Johann Klähn
74a1f63efb fix ctest rules 2013-01-17 09:30:36 +01:00
John Wiegley
d1c96190e9 Revert "fix bug 788: behaviour of source_context for '-f -'"
This reverts commit 0a1ff03542.
2013-01-16 18:10:30 -06:00
Johann Klähn
0a1ff03542 fix bug 788: behaviour of source_context for '-f -'
`session_t::read_data` did not set context.pathname to `/dev/stdin`
for the special case `-f -`. I chose to adjust `source_context` too
as there is no sensible context if no file name is provided.
2013-01-15 23:03:39 +01:00
John Wiegley
3445ddec09 Merge branch 'next' of github.com:ledger/ledger into next 2012-11-26 12:52:12 -06:00
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
John Wiegley
484e54c2b3 Fixed a regression test 2012-11-12 02:30:04 -06: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
Johann Klähn
937c9c7bd1 ignore extra fields when converting csv files
This fixes bug #736.
2012-10-13 20:04:10 +02:00
Johann Klähn
1f2fe401f1 ignore (some) empty field when converting csv
This fixes bug #733 and bug #734.
2012-10-13 19:39:10 +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