]> wagnertech.de Git - mfinanz.git/blobdiff - bin/mozilla/am.pl
Sortieren von Preisfaktoren auf Drag-n-Drop & AJAX mittels jQuery UI Sortable umgestellt
[mfinanz.git] / bin / mozilla / am.pl
index eacf5df1fc41c1dff264efe5de80f268e6e7ac47..588ad9ae5bc7b9e01c2ffb6dc8e9e36e2ea97293 100644 (file)
@@ -3123,16 +3123,8 @@ sub list_price_factors {
 
   AM->get_all_price_factors(\%myconfig, \%$form);
 
-  my $previous;
   foreach my $current (@{ $form->{PRICE_FACTORS} }) {
-    if ($previous) {
-      $previous->{next_id}    = $current->{id};
-      $current->{previous_id} = $previous->{id};
-    }
-
     $current->{factor} = $form->format_amount(\%myconfig, $current->{factor} * 1);
-
-    $previous = $current;
   }
 
   $form->{callback} = build_std_url('action=list_price_factors');
@@ -3186,20 +3178,6 @@ sub delete_price_factor {
   $main::lxdebug->leave_sub();
 }
 
-sub swap_price_factors {
-  $main::lxdebug->enter_sub();
-
-  my $form     = $main::form;
-  my %myconfig = %main::myconfig;
-
-  $main::auth->assert('config');
-
-  AM->swap_sortkeys(\%myconfig, $form, 'price_factors');
-  list_price_factors();
-
-  $main::lxdebug->leave_sub();
-}
-
 sub add_warehouse {
   $main::lxdebug->enter_sub();