X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Finvoice_io.pl;h=843a32f689ea29735d29581eb9461065b97f154c;hb=3686bb31d623aaef632060fbdd9d7447c310e279;hp=c8097e325f1a16631211042edef6b5adb9b614a4;hpb=d18df453f55190d4807af324725ea82a8835d7fc;p=kivitendo-erp.git diff --git a/bin/mozilla/invoice_io.pl b/bin/mozilla/invoice_io.pl index c8097e325..843a32f68 100644 --- a/bin/mozilla/invoice_io.pl +++ b/bin/mozilla/invoice_io.pl @@ -34,7 +34,6 @@ ####################################################################### use CGI; -use CGI::Ajax; use List::Util qw(max); use SL::Common; @@ -206,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"; @@ -226,20 +224,15 @@ sub display_form { $numrows = ++$form->{makemodel_rows}; $subroutine = "makemodel_row"; + # assemblies are built from components, they aren't purchased from a vendor + # also the lastcost_$i from makemodel conflicted with the component lastcost_$i + # so we don't need the makemodel rows for assemblies # create makemodel rows - &{$subroutine}($numrows); + # &{$subroutine}($numrows); $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;