Financial Reports

Why would a company write-off or sell some of their receivables?

If they wrote them off then accepted the money later, would this be legal?

What is the best way to handle accounts that are not paid after 90 days?