Fixed loan bugs
Merge branch 'master' of https://github.com/CiberNorge/cibrary-2014