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.
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.