Fix for balance discrepancy when reversing a credit write off that is stuck in Balance status.

Order To Cash: Customer Ledger Version 10.51

Previously, when having a credit write off stuck in Balance status on a payment, the system would let you reverse it and created balance discrepancy between Accounts receivable and General ledger. This has now been fixed by showing an error when trying to reverse the credit write off suggesting to release it first.