X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=bin%2Fmozilla%2Fpe.pl;h=8c6132ecb61adb2acd38cedd606cc9ad42d7500d;hb=e4d8716c1ae11b6dacf553711848e749ed191d10;hp=5a617ba4deaac7643c10e60ce0133dd82a525e4d;hpb=5b22b6b5b7dbb290048cd15b3ede7d18cba4d09c;p=kivitendo-erp.git
diff --git a/bin/mozilla/pe.pl b/bin/mozilla/pe.pl
index 5a617ba4d..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
#
#======================================================================
@@ -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';
@@ -192,273 +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}&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 |
-
-
-
-
-
-|;
-
- map { print "$column_header{$_}\n" } @column_index;
-
- print qq|
-
-|;
-
- # escape callback
- $form->{callback} = $callback .= "&sort=$form->{sort}";
-
- # escape callback for href
- $callback = $form->escape($callback);
-
- foreach $ref (@{ $form->{project_list} }) {
-
- $i++;
- $i %= 2;
-
- print qq|
-
-|;
-
- $column_data{projectnumber} =
- qq|{script}?action=edit&type=$form->{type}&status=$form->{status}&id=$ref->{id}&callback=$callback>$ref->{projectnumber} | |;
- $column_data{description} = qq|$ref->{description} | |;
- $column_data{active} =
- qq|| .
- ($ref->{active} ? $locale->text("Yes") : $locale->text("No")) .
- qq| | |;
-
- map { print "$column_data{$_}\n" } @column_index;
-
- print "
-
-";
- }
-
- print qq|
-
- |
-
-
-
|
-
-
-
-
-
-
-
-