Lines 469-475
sub renew {
Link Here
|
469 |
|
469 |
|
470 |
$trans = C4::SIP::ILS::Transaction::Renew->new(); |
470 |
$trans = C4::SIP::ILS::Transaction::Renew->new(); |
471 |
$trans->patron($patron = C4::SIP::ILS::Patron->new( $patron_id )); |
471 |
$trans->patron($patron = C4::SIP::ILS::Patron->new( $patron_id )); |
472 |
|
|
|
473 |
if (!$patron) { |
472 |
if (!$patron) { |
474 |
$trans->screen_msg("Invalid patron barcode."); |
473 |
$trans->screen_msg("Invalid patron barcode."); |
475 |
return $trans; |
474 |
return $trans; |
Lines 505-510
sub renew {
Link Here
|
505 |
# } |
504 |
# } |
506 |
|
505 |
|
507 |
$trans->item($item); |
506 |
$trans->item($item); |
|
|
507 |
if ($fee_ack) { |
508 |
$trans->fee_ack($fee_ack); |
509 |
} |
508 |
|
510 |
|
509 |
if (!defined($item)) { |
511 |
if (!defined($item)) { |
510 |
$trans->screen_msg("Item not checked out to " . $patron->name); # not checked out to $patron_id |
512 |
$trans->screen_msg("Item not checked out to " . $patron->name); # not checked out to $patron_id |
Lines 526-531
sub renew_all {
Link Here
|
526 |
my $trans; |
528 |
my $trans; |
527 |
|
529 |
|
528 |
$trans = C4::SIP::ILS::Transaction::RenewAll->new(); |
530 |
$trans = C4::SIP::ILS::Transaction::RenewAll->new(); |
|
|
531 |
if ($fee_ack) { |
532 |
$trans->fee_ack($fee_ack); |
533 |
} |
529 |
|
534 |
|
530 |
$trans->patron($patron = C4::SIP::ILS::Patron->new( $patron_id )); |
535 |
$trans->patron($patron = C4::SIP::ILS::Patron->new( $patron_id )); |
531 |
if (defined $patron) { |
536 |
if (defined $patron) { |