What’s a little debt between friends?

How to apply accounting rules for related-party transactions.