Thank you for your quick reply. Upon further analysis, I discovered that the bug has a bigger scope. Maybe I have a wrong understanding of how to record that particular transaction. Let me explain more thoroughly what I mean:
Image you and a friend are buying groceries, but your friend forgot his wallet. You lend him money by paying the total bill in cash. The total of $100 is split as follows: $60 for your groceries, $40 for his -- so you actually lend $40 to your friend.
The transaction is recorded in the account "Cash" with $100 total, $60 into category "Groceries", $40 participation with your friend. This means that $40 are not associated to any category (the amount you lend to your friend). Only $60 are associated to "Groceries", which is crucial since you do not want his $40 grocery to appear in your expenses.
So much to the scenario. Now when I generate the statistics pie, I select both the cash account and the bank account (sometimes I pay with cash, sometimes with debit card, so the statistic should be on both accounts). I select 'ignore transfers' since I do not want the money I withdraw from my bank account using an ATM (money transfer from bank account to cash account) to appear in the statistic. Then I also want to 'ignore refunds' since the $40 I lent to my friend should be ignored.
Here is the behaviour I expected:
Bank account overview:
OK
Cash account, none ignored:
OK (everything appears)
Cash account, ignore refunds:
OK (only my $60 appear in expenses, without the $40 I lent)
Cash account, ignore transfers:
OK (Income transfers ignored, the $40 I lent appear)
Cash account, ignore transfers+refunds:
BUG?! (Income transfers ignored, but the $40 I lent should be ignored!)
Cash+Bank accounts, none ignored:
OK (everything appears)
Cash+Bank accounts, ignore refunds:
BUG?! (Income transfers should appear, the $40 I lent should be ignored!)
Cash+Bank accounts, ignore transfers:
OK
Cash+Bank accounts, ignore refunds+refunds:
BUG?! (Income transfers ignored, but the $40 I lent should be ignored!)
I also sent you the test document via email.
Thx & cheers
-sgeb