X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FIS.pm;h=7f4920134dbe50ee840812437adaefb041d502f8;hb=acbc5dafe5f409ac2f4e84ca13e9647e74359537;hp=3b0e15666966670a384a1dd0a4175adc8724ca59;hpb=55e9890ade8594530039a7fe1d4ab91a95017752;p=kivitendo-erp.git diff --git a/SL/IS.pm b/SL/IS.pm index 3b0e15666..7f4920134 100644 --- a/SL/IS.pm +++ b/SL/IS.pm @@ -198,7 +198,7 @@ sub invoice_details { push @{ $form->{TEMPLATE_ARRAYS}->{longdescription} }, $form->{"longdescription_$i"}; push @{ $form->{TEMPLATE_ARRAYS}->{qty} }, $form->format_amount($myconfig, $form->{"qty_$i"}); push @{ $form->{TEMPLATE_ARRAYS}->{unit} }, $form->{"unit_$i"}; - push @{ $form->{TEMPLATE_ARRAYS}->{deliverydate_oe} }, $form->{"deliverydate_$i"}; + push @{ $form->{TEMPLATE_ARRAYS}->{deliverydate_oe} }, $form->{"reqdate_$i"}; push @{ $form->{TEMPLATE_ARRAYS}->{sellprice} }, $form->{"sellprice_$i"}; push @{ $form->{TEMPLATE_ARRAYS}->{ordnumber_oe} }, $form->{"ordnumber_$i"}; push @{ $form->{TEMPLATE_ARRAYS}->{transdate_oe} }, $form->{"transdate_$i"}; @@ -1017,13 +1017,6 @@ sub post_invoice { conv_i($form->{"id"})); do_query($form, $dbh, $query, @values); - if($form->{"formname"} eq "credit_note") { - for my $i (1 .. $form->{rowcount}) { - $query = qq|UPDATE parts SET onhand = onhand - ? WHERE id = ?|; - @values = (conv_i($form->{"qty_$i"}), conv_i($form->{"id_$i"})); - do_query($form, $dbh, $query, @values); - } - } if ($form->{storno}) { $query = @@ -1754,8 +1747,8 @@ sub retrieve_item { #Es soll auch nach EAN gesucht werden, ohne Einschränkung durch Beschreibung if ($form->{"partnumber_$i"} && !$form->{"description_$i"}) { - $where .= qq| OR (NOT p.obsolete = '1' AND p.ean = ? )|; - push @values, $form->{"partnumber_$i"}; + $where .= qq| OR (NOT p.obsolete = '1' AND p.ean = ? )|; + push @values, $form->{"partnumber_$i"}; } if ($form->{"description_$i"}) { @@ -1954,38 +1947,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