WHERE usr = match_user
AND (circ_test.org_depth IS NULL OR (circ_test.org_depth IS NOT NULL AND circ_lib IN ( SELECT * FROM explode_array(overdue_orgs) )))
AND checkin_time IS NULL
- AND (stop_fines IN ('MAXFINES','LONGOVERDUE') OR stop_fines IS NULL)
+ AND (stop_fines IN ('MAXFINES','LONGOVERDUE') OR stop_fines IS NULL);
IF items_out >= circ_test.max_items_out THEN
result.fail_part := 'config.circ_matrix_test.max_items_out';
result.success := FALSE;
AND (circ_test.org_depth IS NULL OR (circ_test.org_depth IS NOT NULL AND circ_lib IN ( SELECT * FROM explode_array(overdue_orgs) )))
AND checkin_time IS NULL
AND due_date < NOW()
- AND (stop_fines IN ('MAXFINES','LONGOVERDUE') OR stop_fines IS NULL)
+ AND (stop_fines IN ('MAXFINES','LONGOVERDUE') OR stop_fines IS NULL);
IF items_overdue >= circ_test.max_overdue THEN
result.fail_part := 'config.circ_matrix_test.max_overdue';
result.success := FALSE;
WHERE usr = match_user
AND (circ_test.org_depth IS NULL OR (circ_test.org_depth IS NOT NULL AND circ_lib IN ( SELECT * FROM explode_array(overdue_orgs) )))
AND checkin_time IS NULL
- AND (stop_fines IN ('MAXFINES','LONGOVERDUE') OR stop_fines IS NULL)
+ AND (stop_fines IN ('MAXFINES','LONGOVERDUE') OR stop_fines IS NULL);
IF items_out >= circ_test.max_items_out THEN
result.fail_part := 'config.circ_matrix_test.max_items_out';
result.success := FALSE;
AND (circ_test.org_depth IS NULL OR (circ_test.org_depth IS NOT NULL AND circ_lib IN ( SELECT * FROM explode_array(overdue_orgs) )))
AND checkin_time IS NULL
AND due_date < NOW()
- AND (stop_fines IN ('MAXFINES','LONGOVERDUE') OR stop_fines IS NULL)
+ AND (stop_fines IN ('MAXFINES','LONGOVERDUE') OR stop_fines IS NULL);
IF items_overdue >= circ_test.max_overdue THEN
result.fail_part := 'config.circ_matrix_test.max_overdue';
result.success := FALSE;