From e6f4310417ed916979a24a8699c549f38609d34a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Thu, 22 Sep 2011 15:56:21 +0200 Subject: [PATCH] bp/search in templates umgebaut --- bin/mozilla/bp.pl | 217 +++--------------------------- templates/webpages/bp/search.html | 82 +++++++++++ 2 files changed, 102 insertions(+), 197 deletions(-) create mode 100644 templates/webpages/bp/search.html diff --git a/bin/mozilla/bp.pl b/bin/mozilla/bp.pl index 9ce49155a..87afc3293 100644 --- a/bin/mozilla/bp.pl +++ b/bin/mozilla/bp.pl @@ -65,212 +65,35 @@ sub assert_bp_access { } sub search { - $main::lxdebug->enter_sub(); - - my $form = $main::form; - my %myconfig = %main::myconfig; - my $locale = $main::locale; - - my ($name, $account, $onload); + $::lxdebug->enter_sub; assert_bp_access(); - # $locale->text('Sales Invoices') - # $locale->text('Sales Orders') - # $locale->text('Purchase Orders') - # $locale->text('Quotations') - # $locale->text('RFQs') - # $locale->text('Checks') - # $locale->text('Receipts') - # setup customer/vendor selection - BP->get_vc(\%myconfig, \%$form); - - if (@{ $form->{"all_$form->{vc}"} || [] }) { - map { $name .= "