Lines 1428-1434
sub AddIssue {
Link Here
|
1428 |
} |
1428 |
} |
1429 |
)->store; |
1429 |
)->store; |
1430 |
} |
1430 |
} |
1431 |
|
|
|
1432 |
if ( $item_object->location eq 'CART' && $item_object->permanent_location ne 'CART' ) { |
1431 |
if ( $item_object->location eq 'CART' && $item_object->permanent_location ne 'CART' ) { |
1433 |
## Item was moved to cart via UpdateItemLocationOnCheckin, anything issued should be taken off the cart. |
1432 |
## Item was moved to cart via UpdateItemLocationOnCheckin, anything issued should be taken off the cart. |
1434 |
CartToShelf( $item_object->itemnumber ); |
1433 |
CartToShelf( $item_object->itemnumber ); |
Lines 1890-1908
sub AddReturn {
Link Here
|
1890 |
map { $update_loc_rules->{$_} = $update_loc_rules->{$_}[0] } keys %$update_loc_rules; #We can only move to one location so we flatten the arrays |
1889 |
map { $update_loc_rules->{$_} = $update_loc_rules->{$_}[0] } keys %$update_loc_rules; #We can only move to one location so we flatten the arrays |
1891 |
if ($update_loc_rules) { |
1890 |
if ($update_loc_rules) { |
1892 |
if (defined $update_loc_rules->{_ALL_}) { |
1891 |
if (defined $update_loc_rules->{_ALL_}) { |
1893 |
if ($update_loc_rules->{_ALL_} eq '_PERM_') { $update_loc_rules->{_ALL_} = $item->{permanent_location}; } |
1892 |
if ($update_loc_rules->{_ALL_} eq '_PERM_') { $update_loc_rules->{_ALL_} = $item->permanent_location; } |
1894 |
if ($update_loc_rules->{_ALL_} eq '_BLANK_') { $update_loc_rules->{_ALL_} = ''; } |
1893 |
if ($update_loc_rules->{_ALL_} eq '_BLANK_') { $update_loc_rules->{_ALL_} = ''; } |
1895 |
if ( $item->{location} ne $update_loc_rules->{_ALL_}) { |
1894 |
if ( $item->location ne $update_loc_rules->{_ALL_}) { |
1896 |
$messages->{'ItemLocationUpdated'} = { from => $item->{location}, to => $update_loc_rules->{_ALL_} }; |
1895 |
$messages->{'ItemLocationUpdated'} = { from => $item->location, to => $update_loc_rules->{_ALL_} }; |
1897 |
ModItem( { location => $update_loc_rules->{_ALL_} }, undef, $itemnumber ); |
1896 |
ModItem( { location => $update_loc_rules->{_ALL_} }, undef, $itemnumber ); |
1898 |
} |
1897 |
} |
1899 |
} |
1898 |
} |
1900 |
else { |
1899 |
else { |
1901 |
foreach my $key ( keys %$update_loc_rules ) { |
1900 |
foreach my $key ( keys %$update_loc_rules ) { |
1902 |
if ( $update_loc_rules->{$key} eq '_PERM_' ) { $update_loc_rules->{$key} = $item->{permanent_location}; } |
1901 |
if ( $update_loc_rules->{$key} eq '_PERM_' ) { $update_loc_rules->{$key} = $item->permanent_location; } |
1903 |
if ( $update_loc_rules->{$key} eq '_BLANK_') { $update_loc_rules->{$key} = '' ;} |
1902 |
if ( $update_loc_rules->{$key} eq '_BLANK_') { $update_loc_rules->{$key} = '' ;} |
1904 |
if ( ($item->{location} eq $key && $item->{location} ne $update_loc_rules->{$key}) || ($key eq '_BLANK_' && $item->{location} eq '' && $update_loc_rules->{$key} ne '') ) { |
1903 |
if ( ($item->location eq $key && $item->location ne $update_loc_rules->{$key}) || ($key eq '_BLANK_' && $item->location eq '' && $update_loc_rules->{$key} ne '') ) { |
1905 |
$messages->{'ItemLocationUpdated'} = { from => $item->{location}, to => $update_loc_rules->{$key} }; |
1904 |
$messages->{'ItemLocationUpdated'} = { from => $item->location, to => $update_loc_rules->{$key} }; |
1906 |
ModItem( { location => $update_loc_rules->{$key} }, undef, $itemnumber ); |
1905 |
ModItem( { location => $update_loc_rules->{$key} }, undef, $itemnumber ); |
1907 |
last; |
1906 |
last; |
1908 |
} |
1907 |
} |