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');
$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();