LP1198475: Add a new, optional, Lost and Paid copy status.
authorJason Stephenson <jason@sigio.com>
Fri, 6 Jun 2014 00:49:41 +0000 (20:49 -0400)
committerKathy Lussier <klussier@masslnc.org>
Fri, 6 Jun 2014 02:18:14 +0000 (22:18 -0400)
commitc0e17783720dc55b802961050012f222ff385503
tree7e8e15e1dd979f52057e4be1fa41187e31473499
parentd1cb0e79e74a2c49d297f1f177dd309090e91c14
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>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
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