support the LOST_AND_PAID status added in LP#1198475
authorGalen Charlton <gmc@esilibrary.com>
Thu, 3 Dec 2015 19:20:38 +0000 (14:20 -0500)
committerMike Rylander <mrylander@gmail.com>
Mon, 31 Jul 2017 14:12:51 +0000 (10:12 -0400)
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/sql/Pg/040.schema.asset.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.copy_alerts.sql

index 47313b5..051ffa3 100644 (file)
@@ -920,6 +920,8 @@ BEGIN
         RETURN 'MISSING';
     ELSIF the_copy.status = 14 THEN -- Damaged
         RETURN 'DAMAGED';
+    ELSIF the_copy.status = 17 THEN -- Lost and paid
+        RETURN 'LOST_AND_PAID';
     END IF;
 
     SELECT stop_fines INTO last_circ_stop
@@ -944,6 +946,7 @@ $$ LANGUAGE PLPGSQL;
 CREATE TYPE config.copy_alert_type_state AS ENUM (
     'NORMAL',
     'LOST',
+    'LOST_AND_PAID',
     'MISSING',
     'DAMAGED',
     'CLAIMSRETURNED',
index 054e365..db4cd25 100644 (file)
@@ -15,6 +15,8 @@ BEGIN
         RETURN 'MISSING';
     ELSIF the_copy.status = 14 THEN -- Damaged
         RETURN 'DAMAGED';
+    ELSIF the_copy.status = 17 THEN -- Lost and paid
+        RETURN 'LOST_AND_PAID';
     END IF;
 
     SELECT stop_fines INTO last_circ_stop
@@ -39,6 +41,7 @@ $$ LANGUAGE PLPGSQL;
 CREATE TYPE config.copy_alert_type_state AS ENUM (
     'NORMAL',
     'LOST',
+    'LOST_AND_PAID',
     'MISSING',
     'DAMAGED',
     'CLAIMSRETURNED',