[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
Tue Jan 30 17:20:44 CET 2018


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

--- Comment #7 from Kyle M Hall <kyle at bywatersolutions.com> ---
(In reply to Marcel de Rooy from comment #5)
>     $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?

Good idea. I'll submit a followup for that!

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


More information about the Koha-bugs mailing list