diff --git a/C4/SIP/ILS.pm b/C4/SIP/ILS.pm index 82e1a9cfc2..8e4da378fa 100644 --- a/C4/SIP/ILS.pm +++ b/C4/SIP/ILS.pm @@ -436,7 +436,6 @@ sub renew { $trans = C4::SIP::ILS::Transaction::Renew->new(); $trans->patron($patron = C4::SIP::ILS::Patron->new( $patron_id )); - if (!$patron) { $trans->screen_msg("Invalid patron barcode."); return $trans; @@ -472,6 +471,9 @@ sub renew { # } $trans->item($item); + if ($fee_ack) { + $trans->fee_ack($fee_ack); + } if (!defined($item)) { $trans->screen_msg("Item not checked out to " . $patron->name); # not checked out to $patron_id @@ -493,6 +495,9 @@ sub renew_all { my $trans; $trans = C4::SIP::ILS::Transaction::RenewAll->new(); + if ($fee_ack) { + $trans->fee_ack($fee_ack); + } $trans->patron($patron = C4::SIP::ILS::Patron->new( $patron_id )); if (defined $patron) { diff --git a/C4/SIP/ILS/Transaction/Renew.pm b/C4/SIP/ILS/Transaction/Renew.pm index 9e5579ee87..cfa5a016a3 100644 --- a/C4/SIP/ILS/Transaction/Renew.pm +++ b/C4/SIP/ILS/Transaction/Renew.pm @@ -6,6 +6,7 @@ package C4::SIP::ILS::Transaction::Renew; use warnings; use strict; +use C4::SIP::Sip qw( siplog ); use C4::Circulation qw( CanBookBeRenewed GetIssuingCharges AddIssue ); use Koha::Patrons; @@ -62,6 +63,7 @@ sub do_renew_for { sub do_renew { my $self = shift; + siplog('LOG_DEBUG', "ILS::Transaction::Renew performing renewal..."); my $patron = Koha::Patrons->find( $self->{patron}->borrowernumber ); $patron or return; # FIXME we should log that return $self->do_renew_for($patron->unblessed); diff --git a/C4/SIP/ILS/Transaction/RenewAll.pm b/C4/SIP/ILS/Transaction/RenewAll.pm index 5acd53efb7..d12769e5a5 100644 --- a/C4/SIP/ILS/Transaction/RenewAll.pm +++ b/C4/SIP/ILS/Transaction/RenewAll.pm @@ -33,6 +33,7 @@ sub new { sub do_renew_all { my $self = shift; + siplog('LOG_DEBUG', "ILS::Transaction::RenewAll performing renewals..."); my $patron = $self->{patron}; # SIP's patron my $borrower = Koha::Patrons->find( { cardnumber => $patron->id } )->unblessed; # Koha's patron my $all_ok = 1;