]> wagnertech.de Git - kivitendo-erp.git/blobdiff - bin/mozilla/am.pl
"GIFI"-Verwaltungsfunktionen entfernt.
[kivitendo-erp.git] / bin / mozilla / am.pl
index 5868fa201df9c2c0a278faa3859a93761e9b0a76..d25eb7e308977f6f49a232dfe6d1d4a4949a39af 100644 (file)
@@ -635,231 +635,6 @@ sub delete_account {
   $lxdebug->leave_sub();
 }
 
-sub list_gifi {
-  $lxdebug->enter_sub();
-
-  @{ $form->{fields} } = (accno, description);
-  $form->{table}     = "gifi";
-  $form->{sortorder} = "accno";
-
-  AM->gifi_accounts(\%myconfig, \%$form);
-
-  $form->{title} = $locale->text('GIFI');
-
-  # construct callback
-  $callback =
-    "$form->{script}?action=list_gifi&path=$form->{path}&login=$form->{login}&password=$form->{password}";
-
-  @column_index = qw(accno description);
-
-  $column_header{accno} = qq|<th>| . $locale->text('GIFI') . qq|</a></th>|;
-  $column_header{description} =
-    qq|<th>| . $locale->text('Description') . qq|</a></th>|;
-
-  $form->header;
-  $colspan = $#column_index + 1;
-
-  print qq|
-<body>
-
-<table width=100%>
-  <tr>
-    <th class=listtop colspan=$colspan>$form->{title}</th>
-  </tr>
-  <tr height="5"></tr>
-  <tr class=listheading>
-|;
-
-  map { print "$column_header{$_}\n" } @column_index;
-
-  print qq|
-</tr>
-|;
-
-  # escape callback
-  $callback = $form->escape($callback);
-
-  foreach $ca (@{ $form->{ALL} }) {
-
-    $i++;
-    $i %= 2;
-
-    print qq|
-<tr valign=top class=listrow$i>|;
-
-    $column_data{accno} =
-      qq|<td><a href=$form->{script}?action=edit_gifi&coa=1&accno=$ca->{accno}&path=$form->{path}&login=$form->{login}&password=$form->{password}&callback=$callback>$ca->{accno}</td>|;
-    $column_data{description} = qq|<td>$ca->{description}&nbsp;</td>|;
-
-    map { print "$column_data{$_}\n" } @column_index;
-
-    print "</tr>\n";
-  }
-
-  print qq|
-  <tr>
-    <td colspan=$colspan><hr size=3 noshade></td>
-  </tr>
-</table>
-
-</body>
-</html>
-|;
-
-  $lxdebug->leave_sub();
-}
-
-sub add_gifi {
-  $lxdebug->enter_sub();
-
-  $form->{title} = "Add";
-
-  # construct callback
-  $form->{callback} =
-    "$form->{script}?action=list_gifi&path=$form->{path}&login=$form->{login}&password=$form->{password}";
-
-  $form->{coa} = 1;
-
-  &gifi_header;
-  &gifi_footer;
-
-  $lxdebug->leave_sub();
-}
-
-sub edit_gifi {
-  $lxdebug->enter_sub();
-
-  $form->{title} = "Edit";
-
-  AM->get_gifi(\%myconfig, \%$form);
-
-  &gifi_header;
-  &gifi_footer;
-
-  $lxdebug->leave_sub();
-}
-
-sub gifi_header {
-  $lxdebug->enter_sub();
-
-  $form->{title} = $locale->text("$form->{title} GIFI");
-
-  # $locale->text('Add GIFI')
-  # $locale->text('Edit GIFI')
-
-  $form->{description} =~ s/\"/&quot;/g;
-
-  $form->header;
-
-  print qq|
-<body>
-
-<form method=post action=$form->{script}>
-
-<input type=hidden name=id value=$form->{accno}>
-<input type=hidden name=type value=gifi>
-
-<table width=100%>
-  <tr>
-    <th class=listtop>$form->{title}</th>
-  </tr>
-  <tr height="5"></tr>
-  <tr>
-    <td>
-      <table>
-       <tr>
-         <th align=right>| . $locale->text('GIFI') . qq|</th>
-         <td><input name=accno size=20 value=$form->{accno}></td>
-       </tr>
-       <tr>
-         <th align=right>| . $locale->text('Description') . qq|</th>
-         <td><input name=description size=60 value="$form->{description}"></td>
-       </tr>
-      </table>
-    </td>
-  </tr>
-  <tr>
-    <td colspan=2><hr size=3 noshade></td>
-  </tr>
-</table>
-|;
-
-  $lxdebug->leave_sub();
-}
-
-sub gifi_footer {
-  $lxdebug->enter_sub();
-
-  print qq|
-
-<input name=callback type=hidden value="$form->{callback}">
-
-<input type=hidden name=path value=$form->{path}>
-<input type=hidden name=login value=$form->{login}>
-<input type=hidden name=password value=$form->{password}>
-
-<br><input type=submit class=submit name=action value="|
-    . $locale->text('Save') . qq|">|;
-
-  if ($form->{coa}) {
-    print qq|
-<input type=submit class=submit name=action value="|
-      . $locale->text('Copy to COA') . qq|">
-|;
-
-    if ($form->{accno} && $form->{orphaned}) {
-      print qq|<input type=submit class=submit name=action value="|
-        . $locale->text('Delete') . qq|">|;
-    }
-  }
-
-  print qq|
-  </form>
-
-</body>
-</html>
-|;
-
-  $lxdebug->leave_sub();
-}
-
-sub save_gifi {
-  $lxdebug->enter_sub();
-
-  $form->isblank("accno", $locale->text('GIFI missing!'));
-  AM->save_gifi(\%myconfig, \%$form);
-  $form->redirect($locale->text('GIFI saved!'));
-
-  $lxdebug->leave_sub();
-}
-
-sub copy_to_coa {
-  $lxdebug->enter_sub();
-
-  $form->isblank("accno", $locale->text('GIFI missing!'));
-
-  AM->save_gifi(\%myconfig, \%$form);
-
-  delete $form->{id};
-  $form->{gifi_accno} = $form->{accno};
-  $form->{title}      = "Add";
-  $form->{charttype}  = "A";
-
-  &account_header;
-  &form_footer;
-
-  $lxdebug->leave_sub();
-}
-
-sub delete_gifi {
-  $lxdebug->enter_sub();
-
-  AM->delete_gifi(\%myconfig, \%$form);
-  $form->redirect($locale->text('GIFI deleted!'));
-
-  $lxdebug->leave_sub();
-}
-
 sub add_department {
   $lxdebug->enter_sub();