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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 15 Nov 2019 10:21:37 +0000 (11:21 +0100)
commit66d06a969f833f84fa2eed77bd6b21cf58b367c1
treee1281c5a71df124df77794c8f0d1a4faea49bf8a
parente9677582b32ceca19d785a32ac494e52ab66bd26
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>
(cherry picked from commit aae3dfe1232d8df452c7e677c6fa443017fb0417)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
cataloguing/additem.pl