Die display_form() in invoice_io.pl wird auch für Lieferscheine
aufgereufen. Deshalb muss sie auch auf Lieferscheinrechte überprüfen.
Fix für Bug 1030.
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');
+ $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');
relink_accounts();
retrieve_partunits() if ($form->{type} =~ /_delivery_order$/);