From ddaf7f5082fe6e53015a8f3e6ea96ac8f600930a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Thu, 10 Dec 2009 17:37:03 +0100 Subject: [PATCH] Einkaufsrechnungen Suche -> Templates --- bin/mozilla/ap.pl | 229 ++--------------------- templates/webpages/ap/search_de.html | 191 +++++++++++++++++++ templates/webpages/ap/search_master.html | 191 +++++++++++++++++++ 3 files changed, 394 insertions(+), 217 deletions(-) create mode 100644 templates/webpages/ap/search_de.html create mode 100644 templates/webpages/ap/search_master.html 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 .= "