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>
This commit is contained in:
parent
77082713b3
commit
55127d50fb
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue