Add lender repaid gain template id