Bug 19993: use Modern::Perl in Acquisition perl scripts

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>
This commit is contained in:
Charlotte Cordwell 2018-01-18 00:48:55 +00:00 committed by Jonathan Druart
parent 3f6a7933b8
commit cc37c04bf3
30 changed files with 30 additions and 60 deletions

View File

@ -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;

View File

@ -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

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -26,8 +26,7 @@ Invoice details
=cut
use strict;
use warnings;
use Modern::Perl;
use CGI qw ( -utf8 );
use C4::Auth;

View File

@ -26,8 +26,7 @@ Search for invoices
=cut
use strict;
use warnings;
use Modern::Perl;
use CGI qw ( -utf8 );
use C4::Auth;

View File

@ -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 );

View File

@ -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;

View File

@ -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

View File

@ -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;

View File

@ -58,8 +58,7 @@ The biblionumber of this order.
=cut
use strict;
use warnings;
use Modern::Perl;
use CGI qw ( -utf8 );
use C4::Context;

View File

@ -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;

View File

@ -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;

View 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;

View 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;

View 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;

View 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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -46,8 +46,7 @@ contact_serialsprimary.
=cut
use strict;
use warnings;
use Modern::Perl;
use List::Util;
use C4::Context;
use C4::Auth;

View File

@ -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;