[Koha-bugs] [Bug 19530] Prevent multiple transfers from existing for one item

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Nov 27 13:48:51 CET 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19530

Marcel de Rooy <m.de.rooy at rijksmuseum.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |m.de.rooy at rijksmuseum.nl
             Status|Signed Off                  |Failed QA

--- Comment #5 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
    $dbh->do("UPDATE branchtransfers SET datearrived = NOW(), comments = ?
WHERE itemnumber = ?", undef, "Canceled, new transfer from $frombranch to
$tobranch created", $itemnumber);

We should at least limit this update by adding datearrived IS NULL. No need to
update here all arrived items.
In this case you might even wonder if you should not DELETE those records
instead?
I am wondering if transferbook (the sub calling ModItemTransfer) should check
if there is no open transfer in the table. It is possible to add multiple
transfers by selecting different destinations. What do you think?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list