X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/c6a4a05a9ad2ae02dafff463fa7b49ce41d2ae2f..cca9bcd19f7034fb1b06f6e55f95b6d8a72296ff:/bin/mozilla/invoice_io.pl diff --git a/bin/mozilla/invoice_io.pl b/bin/mozilla/invoice_io.pl index 5f6c1414e..7ff034702 100644 --- a/bin/mozilla/invoice_io.pl +++ b/bin/mozilla/invoice_io.pl @@ -146,7 +146,7 @@ sub display_form { $main::auth->assert('part_service_assembly_edit | vendor_invoice_edit | sales_order_edit | invoice_edit |' . 'request_quotation_edit | sales_quotation_edit | purchase_order_edit | '. - 'purchase_delivery_order_edit | sales_delivery_order_edit'); + 'purchase_delivery_order_edit | sales_delivery_order_edit | part_service_assembly_details'); relink_accounts(); retrieve_partunits() if ($form->{type} =~ /_delivery_order$/); @@ -224,8 +224,11 @@ 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";