LP1198475: Add a new, optional, Lost and Paid copy status. user/dyrcona/lp1198475_Lost_and_Paid_Status
authorJason Stephenson <jason@sigio.com>
Fri, 6 Jun 2014 00:49:41 +0000 (20:49 -0400)
committerJason Stephenson <jason@sigio.com>
Fri, 6 Jun 2014 00:49:42 +0000 (20:49 -0400)
commit13e399f45c6c7eb9aaa8107940fc5d6b39f2f347
treee3e35794f9ca69d25ce21c34f5edef93e2ff05c6
parent53b5adf0cf8098ec761f3b14c30d7789f9c6c942
LP1198475: Add a new, optional, Lost and Paid copy status.

Add the Lost and Paid status to config.copy_status.

Add org_unit_settig to control if the copy status is used.

Add checks to O::A::Circ::Money::make_payments to check for LOST
status and org_unit setting and change the copy status to
Lost and Paid as appropriate.

Also add checks for Lost and Paid copy status wherever LOST copy
status is used.

Add the COPY_STATUS_LOST_AND_PAID event.

Add the event to ils_events.xml with id 7026.

Check for the event in circ/util.js in the staff client.

Add pgTAP tests for the existence of the Lost and Paid copy status
and the new org_unit setting to control if it isused.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Open-ILS/src/extras/ils_events.xml
Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Transit.pm
Open-ILS/src/perlmods/lib/OpenILS/Const.pm
Open-ILS/src/perlmods/lib/OpenILS/SIP/Item.pm
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/t/lp1198475-lost-and-paid-status.pg [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.lost-and-paid-status.sql [new file with mode: 0644]
Open-ILS/xul/staff_client/server/circ/util.js