Bug 23851: Add the homebranch prefix to the barcode when adding multiple copies of...
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 22 Oct 2019 09:36:28 +0000 (11:36 +0200)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 8 Nov 2019 12:56:20 +0000 (12:56 +0000)
commitaae3dfe1232d8df452c7e677c6fa443017fb0417
tree652ae729e62a473f044ba05c9822c48cf7130220
parenta74f1dabe23bdcc17b68c8053fcf868d62f9231e
Bug 23851: Add the homebranch prefix to the barcode when adding multiple copies of an items

See the comment in the code for more information.

Test plan:
- Set autoBarcode to hbyymmincr
- Create an item and click on the barcode field
- A barcode prefixed by the homebranch is generated
- Click the "Add multiple copies of this item" and enter 4
- Save
=> Without this patch only the first item has the homebranch prefix
=> With this patch applied they all have a barcode in the same format

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
cataloguing/additem.pl