[Bug 185] Barcode not auto-calculated when autobarcode is on
http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=185 chris@katipo.co.nz changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|paul.poulain@free.fr |chris@katipo.co.nz ------- Additional Comments From chris@katipo.co.nz 2004-11-28 22:54 ------- Ok, im off to bed now, but this is what needs to be added. (its working in full acquistions (good job btw paul) my $auto_barcode = C4::Context->boolean_preference("autoBarcode") || 0; # See whether barcodes should be automatically allocated. # Defaults to 0, meaning "no". my $barcode; if ($auto_barcode eq '1') { $sth=$dbh->prepare("Select max(barcode) from items"); $sth->execute; my $data=$sth->fetchrow_hashref; $barcode = $results[0]->{'barcode'}+1; $sth->finish; } Ill add this to the 2 simple acquisition scripts as soon as i get the chance ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
participants (1)
-
bugzilla-daemon@wilbur.katipo.co.nz