Skip to content

Firefly III: a personal finances manager

Add comment [skip ci]

James Cole9d1508049e85
diff --git a/app/Generator/Report/Support.php b/app/Generator/Report/Support.php
index 167e99e22e..d12c1159cb 100644
--- a/app/Generator/Report/Support.php
+++ b/app/Generator/Report/Support.php
@@ -49,6 +49,13 @@ class Support
}
/**
+ * This method removes transactions from the collection based on the amount and the opposing account. Usually
+ * this is used to filter double entries (both sides of a journal get included)
+ *
+ * - Opposing account is in $accounts. This usually indicates a transfer and should not be included.
+ * - Amount is less or more than zero. If the modifier is -1, only the positive amount remains, emphasising
+ * deposits. If the modifier is +1, only the negative ones remain, emphasising withdrawals.
+ *
* @param Collection $collection
* @param array $accounts
* @param int $modifier