From e5b88be5fab5978300ac2c8b5cd60095c923af1b Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 29 Aug 2015 06:48:12 +0200 Subject: [PATCH] Fix a bug where an transfer to and from a shared asset would count as an expense/income. --- app/Helpers/Report/ReportQuery.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Helpers/Report/ReportQuery.php b/app/Helpers/Report/ReportQuery.php index 9aba295126..5c98a171d4 100644 --- a/app/Helpers/Report/ReportQuery.php +++ b/app/Helpers/Report/ReportQuery.php @@ -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"'); } ); }