From: Sven Schöling Date: Thu, 10 Dec 2009 16:37:03 +0000 (+0100) Subject: Einkaufsrechnungen Suche -> Templates X-Git-Tag: release-2.6.1beta1~72^2~7 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=ddaf7f5082fe6e53015a8f3e6ea96ac8f600930a;p=kivitendo-erp.git Einkaufsrechnungen Suche -> Templates --- diff --git a/bin/mozilla/ap.pl b/bin/mozilla/ap.pl index e593083d4..3852dad71 100644 --- a/bin/mozilla/ap.pl +++ b/bin/mozilla/ap.pl @@ -1202,234 +1202,29 @@ sub yes { sub search { $main::lxdebug->enter_sub(); + $main::auth->assert('general_ledger | invoice_edit'); + my $form = $main::form; my %myconfig = %main::myconfig; my $locale = $main::locale; - my $cgi = $main::cgi; - - $main::auth->assert('general_ledger | vendor_invoice_edit'); - # setup vendor selection + # setup customer selection $form->all_vc(\%myconfig, "vendor", "AP"); - my $vendor; - if (@{ $form->{all_vendor} || [] }) { - map { $vendor .= "