|
Lines 2014-2020
sub AddReturn {
Link Here
|
| 2014 |
if (defined $update_loc_rules->{_ALL_}) { |
2014 |
if (defined $update_loc_rules->{_ALL_}) { |
| 2015 |
if ($update_loc_rules->{_ALL_} eq '_PERM_') { $update_loc_rules->{_ALL_} = $item->permanent_location; } |
2015 |
if ($update_loc_rules->{_ALL_} eq '_PERM_') { $update_loc_rules->{_ALL_} = $item->permanent_location; } |
| 2016 |
if ($update_loc_rules->{_ALL_} eq '_BLANK_') { $update_loc_rules->{_ALL_} = ''; } |
2016 |
if ($update_loc_rules->{_ALL_} eq '_BLANK_') { $update_loc_rules->{_ALL_} = ''; } |
| 2017 |
if ( defined $item->location && $item->location ne $update_loc_rules->{_ALL_}) { |
2017 |
if ( |
|
|
2018 |
( defined $item->location && $item->location ne $update_loc_rules->{_ALL_}) || |
| 2019 |
(!defined $item->location && $update_loc_rules->{_ALL_} ne "") |
| 2020 |
) { |
| 2018 |
$messages->{'ItemLocationUpdated'} = { from => $item->location, to => $update_loc_rules->{_ALL_} }; |
2021 |
$messages->{'ItemLocationUpdated'} = { from => $item->location, to => $update_loc_rules->{_ALL_} }; |
| 2019 |
$item->location($update_loc_rules->{_ALL_})->store({skip_record_index=>1}); |
2022 |
$item->location($update_loc_rules->{_ALL_})->store({skip_record_index=>1}); |
| 2020 |
} |
2023 |
} |
| 2021 |
- |
|
|