https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30328
Emmi Takkinen <emmi.takki...@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #134202|0 |1 is obsolete| | --- Comment #9 from Emmi Takkinen <emmi.takki...@koha-suomi.fi> --- Created attachment 134206 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=134206&action=edit Bug 30328: Add ability to generate barcode with branch specific prefix We should add more flexibility to generating barcodes by letting libraries define branch specific prefix for their barcodes. This patch adds new option "preyyyymmincr" in systempreference "autoBarcode" and new systempreference "BarcodePrefix" to define branch specific prefix Test plan for adding item: 1. Apply patch and update database 2. Set syspref "autoBarcode" as 3. Add some values to syspref "Barcodeprefix" e.g.: Default: DEF CPL: CPL FFL: FFL 4. Now change your library to CPL (if needed) and add an item 5. Click barcode input field => barcode should be CPL<current_year><current_month>00001 6. Add another item and click barcode field => barcode should be CPL<current_year><current_month>00002 7. Change your library to FFL and add an item => barcode should now be FFL<current_year><current_month>00001 8. Change your library to e.g. FPL (or another as long as it doesn't have prefix value in "Barcodeprefix"), add an item and click barcode field => barcode should now be DEF<current_year><current_month>00001 9. Try to add multiple items => barcodes incremental value should increase in order (no skipping values, no errors) Test plan for adding multiple aqcuisitions: 1. Set syspref "AcqCreateItem" as "placing order". 2. Create an order and add multiple items to it. 3. Save the order. 4. Navigate to that biblios detail page to which you added items. => ordered items barcodes incremental value should increase in order (no skipping values, no errors) Also prove t/db_dependent/Barcodes_ValueBuilder.t and t/Barcodes_preyyyymmincr.t -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org 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/