X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Finvoice_io.pl;h=229927220fb4ca803cf991c31da7ef7a9854b7bd;hb=919007c2bfb65ec08728d3f647446465860bb7f9;hp=12864290f836f5710862143e40b5e75510126f79;hpb=91ab1ef646193de9359076a876a33a74d7691145;p=kivitendo-erp.git diff --git a/bin/mozilla/invoice_io.pl b/bin/mozilla/invoice_io.pl index 12864290f..229927220 100644 --- a/bin/mozilla/invoice_io.pl +++ b/bin/mozilla/invoice_io.pl @@ -596,7 +596,11 @@ sub set_pricegroup { sub display_form { $lxdebug->enter_sub(); + $auth->assert('part_service_assembly_edit | vendor_invoice_edit | sales_order_edit | invoice_edit |' . + 'request_quotation_edit | sales_quotation_edit | purchase_order_edit'); + relink_accounts(); + retrieve_partunits() if ($form->{type} =~ /_delivery_order$/); my $new_rowcount = $form->{"rowcount"} * 1 + 1; $form->{"project_id_${new_rowcount}"} = $form->{"globalproject_id"}; @@ -657,8 +661,7 @@ sub display_form { &{$subroutine}($numrows); - $numrows = ++$form->{makemodel_rows}; - $subroutine = "makemodel_row"; + $numrows = 0; } if ($form->{item} eq 'assembly') { $numrows = $form->{price_rows};