Fixed an issue where replacing a transaction with a customer payment could lead to incorrect deferred income and/or deferred taxes.
Merge pull request #1 from funnylookinhat/customer_payment_fix

Customer Payment Fix - Replacing Transactions