logic thinko in last-copy-deleted IDL view
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 9 Feb 2010 14:25:22 +0000 (14:25 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 9 Feb 2010 14:25:22 +0000 (14:25 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@15479 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/examples/fm_IDL.xml

index 961f049..8f3a37c 100644 (file)
@@ -6256,7 +6256,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                     JOIN asset.copy dcp ON (cn.id = dcp.call_number)
              WHERE  NOT b.deleted
              GROUP BY b.id
-             HAVING SUM( CASE WHEN dcp.deleted THEN -1 ELSE 0 END) &lt; 0 
+             HAVING SUM( CASE WHEN NOT dcp.deleted THEN 1 ELSE 0 END) = 0 
 
                </oils_persist:source_definition>
                <fields oils_persist:primary="id" oils_persist:sequence="biblio.record_entry">