X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=C4%2FPrint.pm;h=69986dc74078c7a3ddb400fac369250817ffb2e6;hb=6733015247bb1f7520d47a8db31d15864fdc1274;hp=21fd8c24e3d7b5ca7ecb7a3692feb59af6a30fec;hpb=661654ae927f4b8d59aee60db6a390e2de8a7d01;p=koha.git diff --git a/C4/Print.pm b/C4/Print.pm index 21fd8c24e3..69986dc740 100644 --- a/C4/Print.pm +++ b/C4/Print.pm @@ -17,10 +17,7 @@ package C4::Print; # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place, # Suite 330, Boston, MA 02111-1307 USA - use strict; -require Exporter; - use C4::Context; use C4::Circulation; use C4::Members; @@ -28,9 +25,13 @@ use C4::Dates qw(format_date); use vars qw($VERSION @ISA @EXPORT); -# set the version for version checking -# set the version for version checking -$VERSION = 3.00; +BEGIN { + # set the version for version checking + $VERSION = 3.01; + require Exporter; + @ISA = qw(Exporter); + @EXPORT = qw(&remoteprint &printreserve &printslip); +} =head1 NAME @@ -48,11 +49,6 @@ The functions in this module handle sending text to a printer. =over 2 -=cut - -@ISA = qw(Exporter); -@EXPORT = qw(&remoteprint &printreserve &printslip); - =item remoteprint &remoteprint($items, $borrower); @@ -181,9 +177,9 @@ EOF #' sub printslip ($) { - my ( $borrowernumber ) = shift; - my ( $borrower, $flags ) = GetMemberDetails( $borrowernumber); - my ($countissues,$issueslist) = GetPendingIssues($borrowernumber); + my $borrowernumber = shift; + my $borrower = GetMemberDetails($borrowernumber); + my $issueslist = GetPendingIssues($borrowernumber); foreach my $it (@$issueslist){ $it->{'date_due'}=format_date($it->{'date_due'}); }