From: Sven Schöling Date: Thu, 10 Dec 2009 10:02:01 +0000 (+0100) Subject: Änderungen zum vorherigen Commit, um die Funktionen rouster zu machen. X-Git-Tag: release-2.6.1beta1~79 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=1465da30be12244675541d59b22e94a0f90e0b33;p=kivitendo-erp.git Änderungen zum vorherigen Commit, um die Funktionen rouster zu machen. --- diff --git a/SL/IS.pm b/SL/IS.pm index 3b0e15666..7c923b0dd 100644 --- a/SL/IS.pm +++ b/SL/IS.pm @@ -1954,38 +1954,6 @@ sub retrieve_item { $main::lxdebug->leave_sub(); } -########################## -# Get data for the submitted order id -# from database -# -sub get_order_data { - - $main::lxdebug->enter_sub(); - - my $self = shift; - my $form = $main::form; - my %myconfig = %main::myconfig; - my $dbh = $form->get_standard_dbh(); - - my @values = (conv_i($form->{ordnumber})); - - # We query the database for the fields we need using the submitted "ordnumber" - my $query = <disconnect; - - $main::lxdebug->leave_sub(); - - return $result; -} - ########################## # get pricegroups from database # build up selected pricegroup diff --git a/SL/OE.pm b/SL/OE.pm index 1bf8a719a..3f7dbaa75 100644 --- a/SL/OE.pm +++ b/SL/OE.pm @@ -1307,4 +1307,37 @@ sub project_description { return $value; } +########################## +# Get data for the submitted order id +# from database +# +sub get_order_data_by_ordnumber { + $main::lxdebug->enter_sub(); + + my $self = shift; + my %params = @_; + + Common::check_params(\%params, qw(ordnumber)); + + my $form = $main::form; + my %myconfig = %main::myconfig; + my $dbh = $form->get_standard_dbh(); + + my @values = ($params{ordnumber}); + + # We query the database for the fields we need using the submitted "ordnumber" + my $query = <leave_sub(); + + return $result; +} + 1; diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index ad0c99080..aa75ebe25 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -34,6 +34,7 @@ use SL::FU; use SL::IS; use SL::PE; +use SL::OE; use Data::Dumper; use List::Util qw(max sum); @@ -156,7 +157,7 @@ sub invoice_links { } # Load data for a specific order and update form fields - my $order_data = IS->get_order_data(); + my $order_data = OE->get_order_data_by_ordnumber(%$form); # Copy the fields we need to %form for my $key (qw(payment_id salesman_id orddate taxzone_id quonumber)) {