From: Sven Schöling Date: Tue, 7 Jan 2014 18:08:32 +0000 (+0100) Subject: no tabs X-Git-Tag: release-3.1.0beta1~22^2~22^2~22 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=d6db88a35e7253f6d9a0278141f71d7c78e1f5f8;p=kivitendo-erp.git no tabs --- diff --git a/SL/IC.pm b/SL/IC.pm index 3b7eb0848..ff8484b7e 100644 --- a/SL/IC.pm +++ b/SL/IC.pm @@ -461,17 +461,17 @@ sub save { my $i = $form->{assembly_rows}; # if last row is not empty add them if ($form->{"partnumber_$i"} ne "") { - $query = qq|SELECT id FROM parts WHERE partnumber = ?|; - my ($partid) = selectrow_query($form, $dbh, $query,$form->{"partnumber_$i"} ); - if ( $partid ) { - $form->{"qty_$i"} = 1 unless ($form->{"qty_$i"}); - $form->{"id_$i"} = $partid; - $form->{"bom_$i"} = 0; - $form->{assembly_rows}++; - } - else { - $::form->error($::locale->text("uncorrect partnumber ").$form->{"partnumber_$i"}); - } + $query = qq|SELECT id FROM parts WHERE partnumber = ?|; + my ($partid) = selectrow_query($form, $dbh, $query,$form->{"partnumber_$i"} ); + if ( $partid ) { + $form->{"qty_$i"} = 1 unless ($form->{"qty_$i"}); + $form->{"id_$i"} = $partid; + $form->{"bom_$i"} = 0; + $form->{assembly_rows}++; + } + else { + $::form->error($::locale->text("uncorrect partnumber ").$form->{"partnumber_$i"}); + } } for my $i (1 .. $form->{assembly_rows}) {