https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44311 --- Comment #5 from David Nind <david@davidnind.com> --- Created attachment 212738 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212738&action=edit Bug 44311: Add C4::Barcodes::ValueBuilder::next_barcode and use it when adding items over the API Adding an item over the API repeated the choice of autoBarcode type, and got the hbyymmincr month wrong for January to September, because the month was not zero padded. The barcode would not have matched the format used elsewhere. next_barcode() makes that choice in one place, takes the library for hbyymmincr, and returns nothing if autoBarcode is OFF, unknown, or has no barcode left. To test: 1. prove t/db_dependent/Barcodes_ValueBuilder.t t/db_dependent/api/v1/biblios.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.