Loan Repayment In Case of Employee Resign

Your issue is similar to this

and this:

Basically there’s no way to settle it on V12 but i think the feature has been added to V13.