Bug 19993: use Modern::Perl in Acquisition perl scripts
authorCharlotte Cordwell <charlotte.cordwell123@gmail.com>
Thu, 18 Jan 2018 00:48:55 +0000 (00:48 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 5 Feb 2018 12:45:47 +0000 (09:45 -0300)
Test Case:
Check the following files have been updated from
use strict;
use warnings;
to
use Modern::Perl;

acqui-home.pl
addorder.pl
basketgroup.pl
basketheader.pl
booksellers.pl
check_budget_total.pl
check_duplicate_barcode_ajax.pl
edi_ean.pl
edifactmsgs.pl
edimsg.pl
finishreceive.pl
histsearch.pl
invoice.pl
invoices.pl
neworderbiblio.pl
neworderempty.pl
newordersuggestion.pl
ordered.pl
orderreceive.pl
parcel.pl
parcels.pl
pdfformat/layout2pages.pm
pdfformat/layout2pagesde.pm
pdfformat/layout3pages.pm
pdfformat/layout3pagesfr.pm
spent.pl
supplier.pl
uncertainprice.pl
updatesupplier.pl
z3950_search.pl

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Corrected a single semicolon in edimsg.pl during signoff.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

30 files changed:
acqui/acqui-home.pl
acqui/addorder.pl
acqui/basketgroup.pl
acqui/basketheader.pl
acqui/booksellers.pl
acqui/check_budget_total.pl
acqui/check_duplicate_barcode_ajax.pl
acqui/edi_ean.pl
acqui/edifactmsgs.pl
acqui/edimsg.pl
acqui/finishreceive.pl
acqui/histsearch.pl
acqui/invoice.pl
acqui/invoices.pl
acqui/neworderbiblio.pl
acqui/neworderempty.pl
acqui/newordersuggestion.pl
acqui/ordered.pl
acqui/orderreceive.pl
acqui/parcel.pl
acqui/parcels.pl
acqui/pdfformat/layout2pages.pm
acqui/pdfformat/layout2pagesde.pm
acqui/pdfformat/layout3pages.pm
acqui/pdfformat/layout3pagesfr.pm
acqui/spent.pl
acqui/supplier.pl
acqui/uncertainprice.pl
acqui/updatesupplier.pl
acqui/z3950_search.pl

index 4da1eaf..cbb8896 100755 (executable)
@@ -26,8 +26,7 @@ this script is the main page for acqui
 
 =cut
 
-use strict;
-use warnings;
+use Modern::Perl;
 
 use CGI qw ( -utf8 );
 use C4::Auth;
index c102779..16fc89c 100755 (executable)
@@ -119,8 +119,7 @@ if it is an order from an existing suggestion : the id of this suggestion.
 
 =cut
 
-use strict;
-use warnings;
+use Modern::Perl;
 use CGI qw ( -utf8 );
 use C4::Auth;           # get_template_and_user
 use C4::Acquisition;    # ModOrder
index 0e8a9a1..8c0e4c4 100755 (executable)
@@ -43,8 +43,7 @@ The bookseller who we want to display the baskets (and basketgroups) of.
 
 =cut
 
-use strict;
-use warnings;
+use Modern::Perl;
 use Carp;
 
 use C4::Auth;
index 6de0a4d..f4650e8 100755 (executable)
@@ -45,8 +45,7 @@ If it exists, C<$basketno> is the basket we edit
 
 =cut
 
-use strict;
-use warnings;
+use Modern::Perl;
 use CGI qw ( -utf8 );
 use C4::Context;
 use C4::Auth;
index 8a35b04..b0ec728 100755 (executable)
@@ -51,8 +51,7 @@ The id of the supplier whose baskets we will display
 
 =cut
 
-use strict;
-use warnings;
+use Modern::Perl;
 use C4::Auth;
 use C4::Biblio;
 use C4::Budgets;
index f8447f2..4981b83 100755 (executable)
@@ -17,8 +17,7 @@
 # You should have received a copy of the GNU General Public License
 # along with Koha; if not, see <http://www.gnu.org/licenses>.
 
-use strict;
-#use warnings; FIXME - Bug 2505
+use Modern::Perl;
 use CGI qw ( -utf8 );
 use C4::Context;
 use C4::Output;
index 1655ac4..0c283bc 100755 (executable)
@@ -17,8 +17,7 @@
 # You should have received a copy of the GNU General Public License
 # along with Koha; if not, see <http://www.gnu.org/licenses>.
 
-use strict;
-#use warnings; FIXME - Bug 2505
+use Modern::Perl;
 use CGI qw ( -utf8 );
 use CGI::Cookie;
 use JSON;
index 4ceda87..4520aaa 100755 (executable)
@@ -21,8 +21,7 @@
 # but as all sites so far are single ordering ean its not clear what we should
 # replace it with
 #
-use strict;
-use warnings;
+use Modern::Perl;
 
 use C4::Auth;
 use C4::Koha;
index 608eaff..c706d92 100755 (executable)
@@ -16,8 +16,7 @@
 # with Koha; if not, write to the Free Software Foundation, Inc.,
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
-use strict;
-use warnings;
+use Modern::Perl;
 
 use CGI;
 use Koha::Database;
index c3547f0..acc5bea 100755 (executable)
@@ -16,8 +16,7 @@
 # with Koha; if not, write to the Free Software Foundation, Inc.,
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
-use strict;
-use warnings;
+use Modern::Perl;
 
 use CGI;
 use Koha::Database;
index 7bec865..8c1439c 100755 (executable)
@@ -20,8 +20,7 @@
 # You should have received a copy of the GNU General Public License
 # along with Koha; if not, see <http://www.gnu.org/licenses>.
 
-use strict;
-use warnings;
+use Modern::Perl;
 use CGI qw ( -utf8 );
 use C4::Auth;
 use C4::Output;
index 9261379..b30eda3 100755 (executable)
@@ -49,8 +49,7 @@ to filter on ended date.
 
 =cut
 
-use strict;
-#use warnings; FIXME - Bug 2505
+use Modern::Perl;
 use CGI qw ( -utf8 );
 use C4::Auth;    # get_template_and_user
 use C4::Output;
index 1ed46cf..0f2933a 100755 (executable)
@@ -26,8 +26,7 @@ Invoice details
 
 =cut
 
-use strict;
-use warnings;
+use Modern::Perl;
 
 use CGI qw ( -utf8 );
 use C4::Auth;
index 3c10e7a..8ab7a32 100755 (executable)
@@ -26,8 +26,7 @@ Search for invoices
 
 =cut
 
-use strict;
-use warnings;
+use Modern::Perl;
 
 use CGI qw ( -utf8 );
 use C4::Auth;
index a2a3c7a..f083398 100755 (executable)
@@ -55,8 +55,7 @@ the basket number to know on which basket this script have to add a new order.
 
 =cut
 
-use strict;
-#use warnings; FIXME - Bug 2505
+use Modern::Perl;
 
 use C4::Search;
 use CGI qw ( -utf8 );
index ab92985..680be6a 100755 (executable)
@@ -66,8 +66,7 @@ the item's id in the breeding reservoir
 
 =cut
 
-use warnings;
-use strict;
+use Modern::Perl;
 use CGI qw ( -utf8 );
 use C4::Context;
 
index c182ed3..6bc0a64 100755 (executable)
@@ -88,8 +88,7 @@ can be equal to
 
 =cut
 
-use strict;
-#use warnings; FIXME - Bug 2505
+use Modern::Perl;
 
 use CGI qw ( -utf8 );
 use C4::Auth;    # get_template_and_user
index 5c2cc6d..a976cc9 100755 (executable)
@@ -28,8 +28,7 @@ this script is to show orders ordered but not yet received
 =cut
 
 use C4::Context;
-use strict;
-use warnings;
+use Modern::Perl;
 use CGI qw ( -utf8 );
 use C4::Auth;
 use C4::Output;
index 7952e1d..e876942 100755 (executable)
@@ -58,8 +58,7 @@ The biblionumber of this order.
 
 =cut
 
-use strict;
-use warnings;
+use Modern::Perl;
 
 use CGI qw ( -utf8 );
 use C4::Context;
index b01e591..5bec6f1 100755 (executable)
@@ -54,8 +54,7 @@ To filter the results list on this given date.
 
 =cut
 
-use strict;
-use warnings;
+use Modern::Perl;
 
 use C4::Auth;
 use C4::Acquisition;
index d0e6e2b..c0a330b 100755 (executable)
@@ -66,8 +66,7 @@ To know how many results have to be display / page.
 
 =cut
 
-use strict;
-use warnings;
+use Modern::Perl;
 use CGI qw ( -utf8 );
 use C4::Auth;
 use C4::Output;
index 7e7bc3d..0d2a6e7 100644 (file)
@@ -24,8 +24,7 @@
 package pdfformat::layout2pages;
 use vars qw(@ISA @EXPORT);
 use MIME::Base64;
-use strict;
-use warnings;
+use Modern::Perl;
 use utf8;
 
 use Koha::Number::Price;
index 08924d3..63269df 100644 (file)
@@ -24,8 +24,7 @@
 package pdfformat::layout2pagesde;
 use vars qw(@ISA @EXPORT);
 use MIME::Base64;
-use strict;
-use warnings;
+use Modern::Perl;
 use utf8;
 
 use Koha::Number::Price;
index f825ed3..8f80fe2 100644 (file)
@@ -25,8 +25,7 @@ package pdfformat::layout3pages;
 use vars qw(@ISA @EXPORT);
 use MIME::Base64;
 use List::MoreUtils qw/uniq/;
-use strict;
-use warnings;
+use Modern::Perl;
 use utf8;
 
 use Koha::Number::Price;
index 14b0cc0..5568e01 100644 (file)
@@ -24,8 +24,7 @@ package pdfformat::layout3pagesfr;
 use vars qw(@ISA @EXPORT);
 use MIME::Base64;
 use List::MoreUtils qw/uniq/;
-use strict;
-use warnings;
+use Modern::Perl;
 use utf8;
 
 use Koha::Number::Price;
index f31b283..9a1c805 100755 (executable)
@@ -32,8 +32,7 @@ this script is designed to show the spent amount in budgets
 use C4::Context;
 use C4::Auth;
 use C4::Output;
-use strict;
-use warnings;
+use Modern::Perl;
 use CGI qw ( -utf8 );
 
 my $dbh      = C4::Context->dbh;
index e0addbc..40235df 100755 (executable)
@@ -40,8 +40,7 @@ To know the bookseller this script has to display details.
 
 =cut
 
-use strict;
-use warnings;
+use Modern::Perl;
 use C4::Auth;
 use C4::Contract;
 use C4::Biblio;
index 7fa95ab..4a559e3 100755 (executable)
@@ -43,8 +43,7 @@ The bookseller who we want to display the orders of.
 =cut
 
 
-use strict;
-use warnings;
+use Modern::Perl;
 
 use C4::Auth;
 use C4::Output;
index 18912dd..5b077f1 100755 (executable)
@@ -46,8 +46,7 @@ contact_serialsprimary.
 
 =cut
 
-use strict;
-use warnings;
+use Modern::Perl;
 use List::Util;
 use C4::Context;
 use C4::Auth;
index 59f9f36..98a81fd 100755 (executable)
@@ -19,8 +19,7 @@
 # You should have received a copy of the GNU General Public License
 # along with Koha; if not, see <http://www.gnu.org/licenses>.
 
-use warnings;
-use strict;
+use Modern::Perl;
 use CGI qw/-utf8/;
 
 use C4::Auth;