From 6a262293f3dd295a77455332a765a144ac1759cb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 1 Feb 2011 17:34:38 +0100 Subject: [PATCH] =?utf8?q?DO.pm::get=5Fitem=5Favailability=20-=20unn=C3=B6?= =?utf8?q?tige=20loaklisierung=20von=20globals=20entfernt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/DO.pm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/SL/DO.pm b/SL/DO.pm index fe2318cc8..d91f4736d 100644 --- a/SL/DO.pm +++ b/SL/DO.pm @@ -939,7 +939,7 @@ sub unpack_stock_information { } sub get_item_availability { - $main::lxdebug->enter_sub(); + $::lxdebug->enter_sub; my $self = shift; my %params = @_; @@ -947,8 +947,6 @@ sub get_item_availability { Common::check_params(\%params, qw(parts_id)); my @parts_ids = 'ARRAY' eq ref $params{parts_id} ? @{ $params{parts_id} } : ($params{parts_id}); - my $form = $main::form; - my $myconfig = \%main::myconfig; my $query = qq|SELECT i.warehouse_id, i.bin_id, i.chargenumber, i.bestbefore, SUM(qty) AS qty, i.parts_id, @@ -962,9 +960,9 @@ sub get_item_availability { HAVING SUM(qty) > 0 ORDER BY LOWER(w.description), LOWER(b.description), LOWER(i.chargenumber), i.bestbefore |; - my $contents = selectall_hashref_query($form, $form->get_standard_dbh($myconfig), $query, @parts_ids); + my $contents = selectall_hashref_query($::form, $::form->get_standard_dbh, $query, @parts_ids); - $main::lxdebug->leave_sub(); + $::lxdebug->leave_sub; return @{ $contents }; } -- 2.20.1