https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8425

Baptiste Wojtkowski (bwoj) <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #171350|0                           |1
        is obsolete|                            |
 Attachment #171351|0                           |1
        is obsolete|                            |

--- Comment #22 from Baptiste Wojtkowski (bwoj) 
<[email protected]> ---
Created attachment 174602
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=174602&action=edit
Bug 8425: Increment the barcode on each call of set_barcode()

Duplicate barcodes are generated when placing an Order in Acquisitions when
AcqCreateItem = "placing an order" and Autobarcode is turned on.

The problem is that you can accidentally attach 3 items to an order, but only 1
will be saved to the database. When you go to receive your order, you can only
receive 1 item as the other two were never made, since the barcode wasn't
unique.

In 3.8.0, a software error comes up which prevent any item creation, I believe,
but master (3.9.x) doesn't throw any warnings or errors.

Yes.. This tries and solve a bug from 3.8.0 /o/

Test plan:
1 - set syspref "autoBarcode" to generated in the form <branchcode> yymm001
2 - set the barcode field to "barcode.pl" in marc structure
3 - create a new basket
4 - add one item to this basket
5 - click on the barcode field -> it should have a barcode
6 - click on add item and click on the new barcode fiels, it should have
 the same value
 APPLY PATCH:
7 - click on the barcode field -> it should have a barcode
8 - click on add item and click on the new barcode fields, it should have
  an higher barcode.

Note : The barcode is incremented each time the barcode with an empty
value is clicked on. Therefore, if the
librarian removes the value from barcode and click again, they could get
another barcode. I do not know if it is an issue.
Note: This patch is not splitted in two parts anymore

Signed-off-by: Sam Sowanick <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to