]> git.koha-community.org Git - koha.git/commit
Bug 6963: Corrects a problem when a new order is created with a duplicate barcode.
authorFrédérick Capovilla <frederick.capovilla@libeo.com>
Mon, 3 Oct 2011 19:00:05 +0000 (15:00 -0400)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Wed, 16 Nov 2011 13:52:50 +0000 (08:52 -0500)
commit0a06936b2a5c0624ddfa9208774101c9bf00006b
treeb499b44fba70d065dcca8184d1d62d4c078b62a1
parent6b78db76b1fc2715f0993a285673942d0c00009b
Bug 6963: Corrects a problem when a new order is created with a duplicate barcode.

If the AcqCreateItem preference is set to "ordering" and the barcode for
the new item is already in use, no error is returned, but an invalid
itemnumber is saved in the aqorders_items table and the item is never
created.

This patch adds a duplicate barcode verification in neworderempty.pl
_koha_add_item is also modified so it won't return an invalid ID when
an item can't be added.

http://bugs.koha-community.org/show_bug.cgi?id=6963
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Test plan on second patch.
(cherry picked from commit 327be442bd6e63e5ff8c0a5e2461ae836e8deffb)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
C4/Items.pm
acqui/check_duplicate_barcode_ajax.pl [new file with mode: 0755]
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt