had order_by clause in the wrong part of the query
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 15 Sep 2008 22:11:41 +0000 (22:11 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 15 Sep 2008 22:11:41 +0000 (22:11 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@10601 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/support-scripts/generate_circ_notices.pl

index cb47d21..d00740f 100755 (executable)
@@ -192,10 +192,10 @@ sub generate_notice_set {
                     {stop_fines => {'not in' => ["LOST","LONGOVERDUE","CLAIMSRETURNED"]}},
                     {stop_fines => undef}
                 ],
-                               due_date => {between => [$start_date, $end_date]},
-                order_by => {circ => ['usr', 'circ_lib']}
+                               due_date => {between => [$start_date, $end_date]}
             }
-        }
+        },
+        order_by => {circ => ['usr', 'circ_lib']}
     };
 
     # if a circ duration is defined for this type of notice