Revision 88933549
Von Moritz Bunkus vor mehr als 13 Jahren hinzugefügt
bin/mozilla/am.pl | ||
---|---|---|
3123 | 3123 |
|
3124 | 3124 |
AM->get_all_price_factors(\%myconfig, \%$form); |
3125 | 3125 |
|
3126 |
my $previous; |
|
3127 | 3126 |
foreach my $current (@{ $form->{PRICE_FACTORS} }) { |
3128 |
if ($previous) { |
|
3129 |
$previous->{next_id} = $current->{id}; |
|
3130 |
$current->{previous_id} = $previous->{id}; |
|
3131 |
} |
|
3132 |
|
|
3133 | 3127 |
$current->{factor} = $form->format_amount(\%myconfig, $current->{factor} * 1); |
3134 |
|
|
3135 |
$previous = $current; |
|
3136 | 3128 |
} |
3137 | 3129 |
|
3138 | 3130 |
$form->{callback} = build_std_url('action=list_price_factors'); |
... | ... | |
3186 | 3178 |
$main::lxdebug->leave_sub(); |
3187 | 3179 |
} |
3188 | 3180 |
|
3189 |
sub swap_price_factors { |
|
3190 |
$main::lxdebug->enter_sub(); |
|
3191 |
|
|
3192 |
my $form = $main::form; |
|
3193 |
my %myconfig = %main::myconfig; |
|
3194 |
|
|
3195 |
$main::auth->assert('config'); |
|
3196 |
|
|
3197 |
AM->swap_sortkeys(\%myconfig, $form, 'price_factors'); |
|
3198 |
list_price_factors(); |
|
3199 |
|
|
3200 |
$main::lxdebug->leave_sub(); |
|
3201 |
} |
|
3202 |
|
|
3203 | 3181 |
sub add_warehouse { |
3204 | 3182 |
$main::lxdebug->enter_sub(); |
3205 | 3183 |
|
Auch abrufbar als: Unified diff
Sortieren von Preisfaktoren auf Drag-n-Drop & AJAX mittels jQuery UI Sortable umgestellt