Bug 30827 - Autobarcode discards leading zero
Summary: Autobarcode discards leading zero
Status: RESOLVED DUPLICATE of bug 27426
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-20 17:08 UTC by Andrew Fuerste-Henry
Modified: 2022-07-16 19:48 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Fuerste-Henry 2022-05-20 17:08:08 UTC
If you set autobarcode to "generated in the form 1,2,3," Koha will find the largest numeric barcode in your system and add 1. However, if your largest numeric barcode has leading zeros, those will not be maintained in your new item. So if the current highest barcode is "09000," the next barcode generated will be "9001."

Apparently we fixed this on bug 5681 way back in 2011, but it has since regressed.
Comment 1 Katrin Fischer 2022-07-16 19:48:43 UTC

*** This bug has been marked as a duplicate of bug 27426 ***