The fix for bug #713 changes the way capital gains as well as basis costs
are shown. All of these tests use the same input file, which includes
capital gains and losses. The tests are too long to update and verify
manually but I verified some files and believe the output is correct.
I've therefore updated the tests with the output of the fixed ledger.
Let's take baseline/opt-lot-dates.test as one example. In the past,
ledger generated the following incorrect Equity entries:
190.42G Equity
236.83G Capital Gains
-46.41G Capital Losses
If you compare the end of the diff of the test, you'll see:
- 35.42G
+ -155.00G
The difference is: 35.42 - -155.00 = 190.42
This matches exactly the Equity entries previously generated, which
shouldn't be there.
John's fix for bug #713 changes the way basis cost are calculated.
The patch also fixes#712, which caused ledger to create automatic
Equity:Capital Gains that were not correct. Update the test cases
accordingly after verifying the new output.
A wrong query string was generated by "select account": one ansify_if()
too much was listed and justify() was called with the wrong parameters.
Bug fix for #744
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).
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.
By using payees_for_unknown_accounts instead of account_mappings in
csv.cc ledger will have the same behaviour as in `ledger -f - print`
in that it uses payee fields in account directives to rewrite the
account.