[open-ils-commits] r17237 - trunk/Open-ILS/examples (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Aug 18 11:30:47 EDT 2010
Author: phasefx
Date: 2010-08-18 11:30:44 -0400 (Wed, 18 Aug 2010)
New Revision: 17237
Modified:
trunk/Open-ILS/examples/fm_IDL.xml
Log:
thinko here was throwing off the tallies for checked_out.count
Modified: trunk/Open-ILS/examples/fm_IDL.xml
===================================================================
--- trunk/Open-ILS/examples/fm_IDL.xml 2010-08-18 02:09:17 UTC (rev 17236)
+++ trunk/Open-ILS/examples/fm_IDL.xml 2010-08-18 15:30:44 UTC (rev 17237)
@@ -2489,9 +2489,9 @@
END
) AS overdue,
- SUM( CASE WHEN (xact_finish IS NULL AND stop_fines = 'LOST') THEN id ELSE 0 END) AS lost,
- SUM( CASE WHEN (xact_finish IS NULL AND stop_fines = 'CLAIMSRETURNED') THEN id ELSE 0 END) AS claims_returned,
- SUM( CASE WHEN (xact_finish IS NULL AND stop_fines = 'LONGOVERDUE') THEN id ELSE 0 END) AS long_overdue
+ SUM( CASE WHEN (xact_finish IS NULL AND stop_fines = 'LOST') THEN 1 ELSE 0 END) AS lost,
+ SUM( CASE WHEN (xact_finish IS NULL AND stop_fines = 'CLAIMSRETURNED') THEN 1 ELSE 0 END) AS claims_returned,
+ SUM( CASE WHEN (xact_finish IS NULL AND stop_fines = 'LONGOVERDUE') THEN 1 ELSE 0 END) AS long_overdue
FROM action.circulation
WHERE checkin_time IS NULL
GROUP BY 1
More information about the open-ils-commits
mailing list