X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Finvoice_io.pl;h=7ff034702805b0e6ec17aad77db1be8b1cddf50b;hb=805255330a34b43fe8cee050808ca0e76c9a412b;hp=5f6c1414e8ae0c058e95ad76907593e897668f1d;hpb=8003c3b1db2dd73402977fcfe29653108794099c;p=kivitendo-erp.git 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";