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)
committerBen Shum <bshum@biblio.org>
Fri, 23 Jan 2015 21:46:18 +0000 (16:46 -0500)
commit7998ca2858ed709fc78639fa641d91b6ca271d07
treeaebb4ce78cb19eb66b6f0eff0e26df3ca5075afe
parent0afd7a6594308cfe17f1e6e7ceb720440a110c13
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