If the loan isn't repaid it doesn't affect gains, revenue or other forms of financing. 
If the loan is not repaid, the unpaid amount is recognized as an adjustment to the bad debt allowance and does not affect revenue, gains, or other financing sources.