@@ -, +, @@ 1) Get an item's barcode 2) Go to circulation -> transfers 3) Select a branch to transfer to 4) Put in your barcode 5) Submit the transfer 6) Examine the branchtransfers table, note that there is now one open transfer for the item 7) Select a different branch to transfer to 8) Put your same barcode in again 9) Submit the transfer the previous open transfer has been deleted and the new open transfer has replaced it. --- C4/Items.pm | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) --- a/C4/Items.pm +++ a/C4/Items.pm @@ -571,6 +571,9 @@ sub ModItemTransfer { # Remove the 'shelving cart' location status if it is being used. CartToShelf( $itemnumber ) if ( C4::Context->preference("ReturnToShelvingCart") ); + # Remove any previous branch transfers + $dbh->do("DELETE FROM branchtransfers WHERE itemnumber = ? AND datearrived IS NULL", undef, $itemnumber ); + #new entry in branchtransfers.... my $sth = $dbh->prepare( "INSERT INTO branchtransfers (itemnumber, frombranch, datesent, tobranch) --