[FIX] fixed settle_loan functionality

Merged Brian Misael López requested to merge RR-284 into 12.0-stage

Closes RR-284

Merge request reports