https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44311 --- Comment #4 from David Nind <david@davidnind.com> --- Created attachment 212737 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212737&action=edit Bug 44311: Keep a separate hbyymmincr barcode sequence for each library hbyymmincr::get_barcode took the highest sequence number used by any library in the month, so all libraries together were limited to 9999 items a month. It now takes the library code and only looks at that library's barcodes, which also lets it use one anchored LIKE instead of one per library. It returns the complete barcode (for example CPL26110001) rather than the number without the library prefix, and no longer returns JavaScript. When a library has used all 9999 numbers it now returns undef and logs a warning, instead of starting again at 0001 and returning a barcode that already exists. To test: 1. prove t/db_dependent/Barcodes_ValueBuilder.t Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes.