had order_by clause in the wrong part of the query
[Evergreen.git] / 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