X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=bin%2Fmozilla%2Fpe.pl;h=8c6132ecb61adb2acd38cedd606cc9ad42d7500d;hb=d4c9b68ec69a5a04d8e185800718c665151b2bbc;hp=eb62b0663cfadd48ee7a6659b535e881d110cc80;hpb=8c7e44938a661e035f62840e1e177353240ace5d;p=kivitendo-erp.git
diff --git a/bin/mozilla/pe.pl b/bin/mozilla/pe.pl
index eb62b0663..8c6132ecb 100644
--- a/bin/mozilla/pe.pl
+++ b/bin/mozilla/pe.pl
@@ -27,8 +27,7 @@
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#======================================================================
#
-# project administration
-# partsgroup administration
+# partsgroup, pricegroup administration
#
#======================================================================
@@ -49,7 +48,7 @@ sub add {
# construct callback
$form->{callback} =
- "$form->{script}?action=add&type=$form->{type}&login=$form->{login}&password=$form->{password}"
+ "$form->{script}?action=add&type=$form->{type}"
unless $form->{callback};
call_sub("form_$form->{type}_header");
@@ -68,9 +67,6 @@ sub edit {
#/show hhistory button
$form->{title} = "Edit";
- if ($form->{type} eq 'project') {
- PE->get_project(\%myconfig, \%$form);
- }
if ($form->{type} eq 'partsgroup') {
PE->get_partsgroup(\%myconfig, \%$form);
}
@@ -88,33 +84,6 @@ sub search {
$auth->assert('config');
- if ($form->{type} eq 'project') {
- $report = "project_report";
- $sort = 'projectnumber';
- $form->{title} = $locale->text('Projects');
-
- $number = qq|
-
- | . $locale->text('Number') . qq| |
- | . $cgi->textfield('-name' => 'projectnumber', '-size' => 20) . qq| |
-
-
- | . $locale->text('Description') . qq| |
- | . $cgi->textfield('-name' => 'description', '-size' => 60) . qq| |
-
-
- |
- | .
- $cgi->radio_group('-name' => 'active', '-default' => 'active',
- '-values' => ['active', 'inactive', 'both'],
- '-labels' => { 'active' => ' ' . $locale->text("Active"),
- 'inactive' => ' ' . $locale->text("Inactive"),
- 'both' => ' ' . $locale->text("Both") })
- . qq| |
-
-|;
-
- }
if ($form->{type} eq 'partsgroup') {
$report = "partsgroup_report";
$sort = 'partsgroup';
@@ -180,9 +149,6 @@ sub search {
-{login}>
-{password}>
-
@@ -195,279 +161,11 @@ sub search {
$lxdebug->leave_sub();
}
-sub project_report {
- $lxdebug->enter_sub();
-
- $auth->assert('config');
-
- map { $form->{$_} = $form->unescape($form->{$_}) }
- (projectnumber, description);
- PE->projects(\%myconfig, \%$form);
-
- $callback =
- "$form->{script}?action=project_report&type=$form->{type}&login=$form->{login}&password=$form->{password}&status=$form->{status}&active=" .
- E($form->{active});
- $href = $callback;
-
- if ($form->{status} eq 'all') {
- $option = $locale->text('All');
- }
- if ($form->{status} eq 'orphaned') {
- $option .= $locale->text('Orphaned');
- }
- if ($form->{projectnumber}) {
- $href .= "&projectnumber=" . $form->escape($form->{projectnumber});
- $callback .= "&projectnumber=$form->{projectnumber}";
- $option .=
- "\n
" . $locale->text('Project') . " : $form->{projectnumber}";
- }
- if ($form->{description}) {
- $href .= "&description=" . $form->escape($form->{description});
- $callback .= "&description=$form->{description}";
- $option .=
- "\n
" . $locale->text('Description') . " : $form->{description}";
- }
-
- @column_index = qw(projectnumber description);
-
- push(@column_index, "active") if ("both" eq $form->{active});
-
- $column_header{projectnumber} =
- qq||
- . $locale->text('Number')
- . qq| | |;
- $column_header{description} =
- qq||
- . $locale->text('Description')
- . qq| | |;
- $column_header{active} =
- qq|| . $locale->text('Active') . qq| | |;
-
- $form->{title} = $locale->text('Projects');
-
- $form->header;
-
- print qq|
-
-
-
-
- $form->{title} |
-
-
-
- $option |
-
-
-
-
- |
-
-
-
|
-
-
-
-
-
-
-
-