From 68097a153c2c29de88d9cefe68ece53136c3e8cb Mon Sep 17 00:00:00 2001
From: Kyle M Hall <kyle@bywatersolutions.com>
Date: Wed, 10 Aug 2022 07:54:40 -0400
Subject: [PATCH] Import used subroutines for compatibility with Koha 21.11 and
 later

---
 Koha/Plugin/Com/ByWaterSolutions/CurbsidePickup.pm            | 4 ++--
 .../Com/ByWaterSolutions/CurbsidePickup/ApiController.pm      | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Koha/Plugin/Com/ByWaterSolutions/CurbsidePickup.pm b/Koha/Plugin/Com/ByWaterSolutions/CurbsidePickup.pm
index 89a97a2..356fbf7 100644
--- a/Koha/Plugin/Com/ByWaterSolutions/CurbsidePickup.pm
+++ b/Koha/Plugin/Com/ByWaterSolutions/CurbsidePickup.pm
@@ -12,10 +12,10 @@ use File::Slurp qw(read_file);
 use Module::Metadata;
 
 use C4::Auth;
-use C4::Circulation;
+use C4::Circulation qw(CanBookBeIssued AddIssue);
 use C4::Context;
 use C4::Installer qw(TableExists);
-use Koha::DateUtils;
+use Koha::DateUtils qw(dt_from_string);
 use Koha::Libraries;
 use Koha::Schema;
 
diff --git a/Koha/Plugin/Com/ByWaterSolutions/CurbsidePickup/ApiController.pm b/Koha/Plugin/Com/ByWaterSolutions/CurbsidePickup/ApiController.pm
index 0f2ad22..13a277a 100644
--- a/Koha/Plugin/Com/ByWaterSolutions/CurbsidePickup/ApiController.pm
+++ b/Koha/Plugin/Com/ByWaterSolutions/CurbsidePickup/ApiController.pm
@@ -20,7 +20,7 @@ use Modern::Perl;
 use Mojo::Base 'Mojolicious::Controller';
 
 use Koha::Libraries;
-use Koha::DateUtils;
+use Koha::DateUtils qw(dt_from_string);
 use Koha::Plugin::Com::ByWaterSolutions::CurbsidePickup;
 
 =head1 API