Thanks for the detailed information - but however it doesn't work out right.
When I try to apply the CM, it shows both the CM and the journal entry
created by the write off. I can't apply both, and if I try to apply just one,
it shows unused payment. I backed up and voided the CM and try to apply just
the journal entry and it tells me that the full payment hasn't been applied.