Bug 19530: Prevent multiple transfers from existing for one item
authorKyle M Hall <kyle@bywatersolutions.com>
Wed, 25 Oct 2017 18:24:18 +0000 (14:24 -0400)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 22 Feb 2018 01:08:45 +0000 (01:08 +0000)
commit00fbf1878eb2a767769b1405aec4fff1b13711d0
tree6b9cd4bdee54b2c7c8c2862718c57729a3325e72
parent615f88273f61adb039c6c38d52e61bfac0db25e8
Bug 19530: Prevent multiple transfers from existing for one item

We have found multiple open branch transfers for a given item. While I'm not sure how it is happening at this point, it seems that it would make sense to cancel any existing branch transfers when initiating a new one.

Test Plan:
1) prove t/db_dependent/Circulation/transfers.t

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/Items.pm
t/db_dependent/Circulation/transfers.t