From: Wulf Date: Mon, 9 Jan 2012 16:26:55 +0000 (+0100) Subject: Merge branch 'master' of vc.linet-services.de:public/lx-office-erp X-Git-Tag: release-2.7.0beta1~78^2~2 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=8003c3b1db2dd73402977fcfe29653108794099c;hp=1b69969f8d9fedd218b059b7148bc3778ee600f3;p=kivitendo-erp.git Merge branch 'master' of vc.linet-services.de:public/lx-office-erp --- diff --git a/SL/IC.pm b/SL/IC.pm index 8fd928167..5396c7add 100644 --- a/SL/IC.pm +++ b/SL/IC.pm @@ -497,7 +497,6 @@ sub save { } # insert makemodel records - unless ($form->{item} eq 'service') { my $lastupdate = ''; my $value = 0; for my $i (1 .. $form->{makemodel_rows}) { @@ -521,7 +520,6 @@ sub save { do_query($form, $dbh, $query, @values); } } - } # insert taxes foreach my $item (split(/ /, $form->{taxaccounts})) { diff --git a/bin/mozilla/invoice_io.pl b/bin/mozilla/invoice_io.pl index 42e402ec8..5f6c1414e 100644 --- a/bin/mozilla/invoice_io.pl +++ b/bin/mozilla/invoice_io.pl @@ -205,8 +205,7 @@ sub display_form { my $numrows = ++$form->{rowcount}; my $subroutine = "display_row"; - if ($form->{item} eq 'part') { - + if ($form->{item} =~ /(part|service)/) { #set preisgruppenanzahl $numrows = $form->{price_rows}; $subroutine = "price_row"; @@ -231,14 +230,6 @@ sub display_form { $numrows = ++$form->{assembly_rows}; $subroutine = "assembly_row"; } - if ($form->{item} eq 'service') { - $numrows = $form->{price_rows}; - $subroutine = "price_row"; - - &{$subroutine}($numrows); - - $numrows = 0; - } # create rows &{$subroutine}($numrows) if $numrows;