]> 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 12:40:03 +0000 (07:40 -0500)
commit2f36d9b45f26a7032c4a43a8324545123b4542fb
tree693b6bba584475bef1bbb6c53430defcc22e332a
parentf9af3fc79bbbfb2cd6fa71052ea1de44f1da456f
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