Bug 734168 - Tax invoice can be a bill too.
Remove an AC_MSG_CHECKING/AC_MSG_RESULT that is redundant and confusing.
Bug 722140: Add option to control inclusion of trading accounts in cash flow report.
Merge branch 'maint'
Prevent assigning capital gains splits to lots.

They're generated by lots, and when xaccSplitComputeCapGains sees one it grabs the originating lot which naturally doesn't balance.
Divide the value by the rate to get the amount.

Avoids overflowing the amount and is anyway much more realistic:
Value = Amount * price, so a large "rate" means a small price. Since
get_random_rate() is biased to producing large rates (denom is fixed
at 100), it was effectively testing infinitesimal prices.
Balance ENTER with a LEAVE for all exit points.

For xaccLotFill and xaccLotScrubDoubleBalance, anyway.
Improve messages in account hierarchy assistant.

Inspired on a proposal by Jeff Kletsky <gnucash@allycomm.com> from 2010...
CMake: Update build system to build again.
Gtkmm wrappers: Adapt to setting qof_instance_set_dirty as private functions.
Bug 707243 - Hard-coded font colors in account tree?
Add some initial aqbanking test with example file that should demonstrate the hbci template kvp problem.

Not yet working, though - the test, I mean.
Make aqbanking kvp test really working.

It now contains the part that is failing since 7faed6540162ccd1fe which
is disabled at the moment but can be seen by setting test-kvp:c:94 to
if (1).
Get the Aqbanking transfer action to work again: Revert part of 7faed6540162ccd1fe.

As discussed in
https://lists.gnucash.org/pipermail/gnucash-devel/2014-July/037868.html
as an exception the direct access to the kvp is enabled again in
import-export/aqb/gnc-ab-kvp.c because the way aqbanking transfer templates
are stored cannot be mapped directly on the properties mechanism.
With this implementation, at least the read access to the templates
works again, which means the aqbanking transfers can be used again (they
crashed immediately up until now).

However, writing a changed template to the kvp seems to not work - the
changed values seem not to be saved. This would be a bug, but not as severe
as the previous one. The unittest verifies both reading and writing,
though, and there also writing works fine. Well, this can be worked
on later.
The sense of the "Only show active customers" checkbox was inverted.
Finish implementing the "Show zero balance owners" filter option.
It always showed nothing before.
Change gncOwnerGetBalanceInCurrency to only cosider lots that contain an invoice.
This function is currently only used in the owner tree code and this change
will cause payments not properly linked to invoices to be ignored when computing
owner balances.
Use guint64 instead of uint64_t with G_GUINT64_FORMAT to avoid warnings.
Merge branch 'maint'
Aqbanking transfer: Make IBAN and BIC text entry fields filter digits or alphas correctly as needed.