X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fbp.pl;h=173f8b6c182b858b10ea18ebdaab10679f63a9bf;hb=39294de3fcf40d987865ff17ddab1de070c29f63;hp=10acafdaa079005eb069856c80df4b768f83835f;hpb=3314d7c2247d46033fcd7cd1e1663a705db02fea;p=kivitendo-erp.git diff --git a/bin/mozilla/bp.pl b/bin/mozilla/bp.pl index 10acafdaa..173f8b6c1 100644 --- a/bin/mozilla/bp.pl +++ b/bin/mozilla/bp.pl @@ -59,14 +59,6 @@ sub assert_bp_access { if ($form->{type} && $access_map{$form->{type}}) { $main::auth->assert($access_map{$form->{type}}); - } elsif ($form->{type} eq 'packing_list') { - $main::lxdebug->message(0, "1"); - if (!$main::auth->assert('sales_order_edit', 1)) { - $main::lxdebug->message(0, "2"); - $main::auth->assert('invoice_edit') ; - } - $main::lxdebug->message(0, "3"); - } else { $main::auth->assert('DOES_NOT_EXIST'); } @@ -84,7 +76,6 @@ sub search { assert_bp_access(); # $locale->text('Sales Invoices') - # $locale->text('Packing Lists') # $locale->text('Sales Orders') # $locale->text('Purchase Orders') # $locale->text('Quotations') @@ -95,7 +86,7 @@ sub search { # setup customer/vendor selection BP->get_vc(\%myconfig, \%$form); - if (@{ $form->{"all_$form->{vc}"} }) { + if (@{ $form->{"all_$form->{vc}"} || [] }) { map { $name .= "