Limit simiplified pull list to available copies user/tsbere/ahopl_limit_to_available
authorThomas Berezansky <tsbere@mvlc.org>
Fri, 18 Apr 2014 13:46:13 +0000 (09:46 -0400)
committerThomas Berezansky <tsbere@mvlc.org>
Fri, 18 Apr 2014 13:46:13 +0000 (09:46 -0400)
Copies that are targeted by a hold but are not in available or reshelving
statuses should not show up on a pull list.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Open-ILS/examples/fm_IDL.xml

index adfcd2e..9587371 100644 (file)
@@ -5421,7 +5421,8 @@ SELECT  usr,
                        ahr.capture_time IS NULL AND
                        ahr.cancel_time IS NULL AND
                        csp.id IS NULL AND
-                       (ahr.expire_time is NULL OR ahr.expire_time > NOW())
+                       (ahr.expire_time is NULL OR ahr.expire_time > NOW()) AND
+                       acp.status IN (0,7)
                ]]></oils_persist:source_definition>
                <fields oils_persist:primary="id">
                        <field reporter:label="Status" name="status" oils_persist:virtual="true" />