Editing a foreign currency transfer causes unbalanced accounts
Problem reported by Richard Cooper 11 years ago
Steps to reproduce:
- Have two dollar accounts - A and B. Give them opening balances of $1000
- Create a transfer from A to B of $100
- Money > Bank Accounts > All now shows balances of A=$900 and B=$1100 as we would expect.
- Now edit the transaction which represents the account A side of the transfer. Note that the UI asks for the amount in dollars. Change the amount from -$100 to -$95.
Result:
- Money > Bank Accounts > All shows balances of A=$905 and B=$1100. I've gained $5 out of nowhere.
- View the transaction which represents the account B side of the transfer. The "currency" amount still shows $100. It has not been changed to $95. Note that the sterling "amount" field has correctly been changed to to balance the other side of the transfer. It's only the dollar amount which has not been changed
Expected Result:
- The payment representing the 'other side' of the transfer should be changed to $95 so that both the sterling "amount" and the dollar "currency" fields balance, not just the sterling one.