[Version-12]: Loan Status not changing to Repaid/Closed when last installment is deducted

There’s a bug in version due to which Loan status is not changed to Repaid/Closed when last installment is deducted from Salary.

Adding doc.reload() after below line fixes it in my development environment. Can someone check this and raise a PR if already working on loans?

Thanks!