Bug 15042: Barcode hbyymmincr does not work when receiving serials
To test:
- Set autoBarcode = <branchcode>yymm0001
- Make sure you have a serial that is set to "create an item record
when receiving this serial"
- Receive an issue
- Click in the barcode field - nothing happens
- Apply patch and reload page
- Receive an issue
- Click in the barcode field - a barcode conforming to the
hbyymmincr setting appears
Patch works as advertised.
Signed-off-by: Marc Véron <veron@veron.ch>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 55127d50fb)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
parent
a2372222d9
commit
2067f59876
|
|
@ -61,6 +61,9 @@ sub get_barcode {
|
|||
warn "New hbyymmincr Barcode = $nextnum" if $DEBUG;
|
||||
my $scr = "
|
||||
var form = document.getElementById('f');
|
||||
if ( !form ) {
|
||||
form = document.getElementById('serials_edit');
|
||||
}
|
||||
if ( !form ) {
|
||||
form = document.getElementById('Aform');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue