[Koha-bugs] [Bug 6963] When creating a new order, the item isn't added if its barcode already exists in the items table.

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sat Oct 8 22:22:51 CEST 2011


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6963

Katrin Fischer <katrin.fischer at bsz-bw.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #5682|0                           |1
        is obsolete|                            |

--- Comment #4 from Katrin Fischer <katrin.fischer at bsz-bw.de> 2011-10-08 20:22:51 UTC ---
Created attachment 5806
  --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=5806
[SIGNED-OFF] 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 at web.de>
1) Set AcqCreateItem on 'on order'
2) Make sure barcode was available in my ACQ framework
3) Create a new basket, first order, barcode 'barc'
4) create a second order in that basket, tried again with 'barc'
-> Alert message informs about the duplicate barcode
5) Change the barcode to be something else and saved
New record with item should be correctly created

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.


More information about the Koha-bugs mailing list