From: Kyle M Hall Date: Fri, 15 Mar 2019 14:32:14 +0000 (-0400) Subject: Bug 14591: (QA follow-up) Fix call to AddReturn for SIP X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=a13dff4b88b0c4efc66a05fa33870d81291da9db;p=koha.git Bug 14591: (QA follow-up) Fix call to AddReturn for SIP Signed-off-by: Nick Clemens --- diff --git a/C4/SIP/ILS/Transaction/Checkin.pm b/C4/SIP/ILS/Transaction/Checkin.pm index c8b8fe8b41..0303a47e97 100644 --- a/C4/SIP/ILS/Transaction/Checkin.pm +++ b/C4/SIP/ILS/Transaction/Checkin.pm @@ -12,9 +12,10 @@ use strict; use C4::SIP::ILS::Transaction; use C4::Circulation; -use C4::Reserves qw( ModReserveAffect ); -use C4::Items qw( ModItemTransfer ); use C4::Debug; +use C4::Items qw( ModItemTransfer ); +use C4::Reserves qw( ModReserveAffect ); +use Koha::DateUtils qw( dt_from_string ); use parent qw(C4::SIP::ILS::Transaction); @@ -67,7 +68,7 @@ sub do_checkin { . substr( $return_date, 16, 2 ); $debug and warn "do_checkin() calling AddReturn($barcode, $branch)"; - my ($return, $messages, $issue, $borrower) = AddReturn($barcode, $branch, undef, $return_date); + my ($return, $messages, $issue, $borrower) = AddReturn($barcode, $branch, undef, dt_from_string($return_date)); $self->alert(!$return); # ignoring messages: NotIssued, WasLost, WasTransfered