# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
-# You should have received a copy of the GNU General Public License along with
-# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
-# Suite 330, Boston, MA 02111-1307 USA
-
+# You should have received a copy of the GNU General Public License along
+# with Koha; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
use strict;
-require Exporter;
-
+#use warnings; FIXME - Bug 2505
use C4::Context;
use C4::Circulation;
use C4::Members;
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
=head1 FUNCTIONS
-=over 2
-
-=cut
-
-@ISA = qw(Exporter);
-@EXPORT = qw(&remoteprint &printreserve &printslip);
-
-=item remoteprint
+=head2 remoteprint
&remoteprint($items, $borrower);
return $slip;
}
-=item printslip
+=head2 printslip
&printslip($borrowernumber)
- print a slip for the given $borrowernumber
-
+print a slip for the given $borrowernumber
+
=cut
#'
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'});
}
1;
__END__
-=back
-
=head1 AUTHOR
-Koha Developement team <info@koha.org>
+Koha Development Team <info@koha.org>
=head1 SEE ALSO