opensandiego / p2p-lending

Peer-to-Peer lending app in partnership with Linda Vista Library
21 stars 12 forks source link

Reformat admin lending actions, add "finalization" of loan code and tests #64

Closed nikolajbaer closed 4 years ago

nikolajbaer commented 5 years ago

Extending work by @BolunThompson (with some minor formatting for older eyes), and added intrinsic "finalization" of loans. Specifically when a loan is all done we need to make the item "available" again, as well as scrub the borrower Foreign Key, as privacy is a core requirement.

Also added unit tests to confirm finalization process.