LP#1412893: Only apply lost and paid status with the proper transactions user/bshum/lp1412893_lost_and_paid_fix
authorBen Shum <bshum@biblio.org>
Wed, 21 Jan 2015 21:30:53 +0000 (16:30 -0500)
committerBen Shum <bshum@biblio.org>
Wed, 21 Jan 2015 21:35:18 +0000 (16:35 -0500)
commitab8dc185ffbf784007b7c7c3e7cf2ca7b1c78078
treeb416f3fbfb67f794add25301ef9a1bbda1ba9e57
parent7267934b9df98b0877b15f6f38d4f7b9a32482c0
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>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm