]> 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)
committerPaul Poulain <paul.poulain@biblibre.com>
Fri, 4 Nov 2011 09:22:28 +0000 (10:22 +0100)
commit327be442bd6e63e5ff8c0a5e2461ae836e8deffb
tree693b6bba584475bef1bbb6c53430defcc22e332a
parentafaf7eaffa2b7e18675eb5d5a9fdd00fd31c5685
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.
C4/Items.pm
acqui/check_duplicate_barcode_ajax.pl [new file with mode: 0755]
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt