[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
Mon Oct 17 22:48:37 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 #5838|0                           |1
        is obsolete|                            |
   Attachment #5944|0                           |1
        is obsolete|                            |
   Attachment #5945|0                           |1
        is obsolete|                            |

--- Comment #12 from Katrin Fischer <katrin.fischer at bsz-bw.de> 2011-10-17 20:48:37 UTC ---
Created attachment 5946
  --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=5946
[SIGNED-OFF] 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 at web.de>
Test plan on second patch.

-- 
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