Koha/C4/SIP/interactive_renew_all_dump.pl
Joe Atzberger (siptest 1a46bc1218 Interactive debugging aides for SIP abstraction layer.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-06-05 22:43:44 -05:00

22 lines
456 B
Perl
Executable file

#!/usr/bin/perl
#
use warnings;
use strict;
use ILS::Transaction::RenewAll;
use Data::Dumper;
while (1) {
print "Enter patron barcode: ";
my $in = <>;
defined($in) or last;
chomp($in);
last unless $in;
my $patron = ILS::Patron->new($in);
print "Patron before: \n " . Dumper($patron);
my $action = ILS::Transaction::RenewAll->new();
$action->do_renew_all();
print "\n\nTransaction::RenewAll: " . Dumper($action);
print "\n", "=" x 35, "\n";
}