From a13dff4b88b0c4efc66a05fa33870d81291da9db Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 15 Mar 2019 10:32:14 -0400 Subject: [PATCH] Bug 14591: (QA follow-up) Fix call to AddReturn for SIP Signed-off-by: Nick Clemens --- C4/SIP/ILS/Transaction/Checkin.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 -- 2.39.5