3 #package to deal with Returns
4 #written 3/11/99 by olwen@katipo.co.nz
10 use C4::Circulation::Circ2;
12 #use C4::InterfaceCDK;
13 #use C4::Circulation::Main;
15 #use C4::Circulation::Renewals;
21 use vars qw($VERSION @ISA @EXPORT);
23 # set the version for version checking
27 @EXPORT = qw(&getgroups &groupmembers);
33 my $sth=$dbh->prepare("select distinct groupshortname,grouplongname from borrowergroups");
35 while (my ($short, $long)=$sth->fetchrow) {
36 $groups{$short}=$long;
43 my ($env, $group) = @_;
46 my $q_group=$dbh->quote($group);
47 my $sth=$dbh->prepare("select borrowernumber from borrowergroups where groupshortname=$q_group");
49 while (my ($borrowernumber) = $sth->fetchrow) {
50 my ($patron, $flags) = getpatroninformation($env, $borrowernumber);
51 my $currentissues=currentissues($env, $patron);
52 $patron->{'currentissues'}=$currentissues;
53 push (@members, $patron);
59 END { } # module clean-up code here (global destructor)