Fix a bug where an transfer to and from a shared asset would count as an expense/income.

This commit is contained in:
James Cole 2015-08-29 06:48:12 +02:00
parent 425552988a
commit e5b88be5fa

View File

@ -50,6 +50,7 @@ class ReportQuery implements ReportQueryInterface
function (Builder $q) { // and transfers from a shared account.
$q->where('transaction_types.type', 'Transfer');
$q->where('acm_to.data', '=', '"sharedAsset"');
$q->where('acm_from.data', '!=', '"sharedAsset"');
}
);
}