Bug 5659

Summary: autobarcode seeting <branchcode>YYMM0001> broken
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: CatalogingAssignee: Galen Charlton <gmcharlt>
Status: CLOSED DUPLICATE QA Contact: Bugs List <koha-bugs>
Severity: critical    
Priority: P5 - low CC: koha.sekjal
Version: rel_3_2   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: screenshot

Description Katrin Fischer 2011-01-26 11:09:03 UTC
Created attachment 3023 [details]
screenshot

I was testing this setting for a library with multiple branches. The counter seems to be totally broken.

My first 5 generated barcodes were:
RPL10120001 - ok
RPL10122001 - ?
RPL10122201 - ?
RPL10122221 - ?
RPL10122223 - ?

After that it kept generating the last number RPL10122223.

I changed to another branch to try again, the generated number was:
FFL10122223 	

After saving an item with this number it also kept generating FFL10122223.

I think it should look like:

RPL10120001 
RPL10120002 
RPL10120003 
RPL10120004 
...
RPL10120011
RPL10120012

And ideally start anew for each branch:

RPL10120001
FFL10120001
RPL10120002
RPL10120003
FFL10120002
Comment 1 Ian Walls 2011-01-26 15:02:44 UTC
Marking as duplicate of 3577, which has an attached patch for Katrin to test.

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