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:
Magnus Enger 2015-10-21 13:11:28 +02:00 committed by Tomas Cohen Arazi
parent 77082713b3
commit 55127d50fb

View file

@ -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');
}