LP#1277551: Limit simplified pull list to available copies
authorThomas Berezansky <tsbere@mvlc.org>
Fri, 18 Apr 2014 13:46:13 +0000 (09:46 -0400)
committerBen Shum <bshum@biblio.org>
Wed, 27 Aug 2014 04:39:21 +0000 (00:39 -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>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/examples/fm_IDL.xml

index 2f9fc7f..63987ef 100644 (file)
@@ -5423,7 +5423,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" />