LP#1412893: Only apply lost and paid status with the proper transactions
authorBen Shum <bshum@biblio.org>
Wed, 21 Jan 2015 21:30:53 +0000 (16:30 -0500)
committerDan Scott <dscott@laurentian.ca>
Thu, 5 Mar 2015 17:43:08 +0000 (12:43 -0500)
commit4d23d203e22741641340776d2d03284fb17f9711
tree3b6c87336cbfedd932a763f2ec50914edf51a771
parent07d93509a0de396e062b07bd8b2fe023b35a45de
LP#1412893: Only apply lost and paid status with the proper transactions

As discovered while testing the lost and paid feature, when closing earlier transactions where
the item is currently lost, it could change the item status to lost and paid prematurely.

Change the logic so that it only does this if the current transaction being closed either has
a status of lost or longoverdue.

Signed-off-by: Ben Shum <bshum@biblio.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm