[Koha-bugs] [Bug 185] Barcode not auto-calculated when autobarcode is on

bugzilla-daemon at wilbur.katipo.co.nz bugzilla-daemon at wilbur.katipo.co.nz
Sun Nov 28 10:54:03 CET 2004


http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=185

chris at katipo.co.nz changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|paul.poulain at free.fr        |chris at katipo.co.nz



------- Additional Comments From chris at 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.




More information about the Koha-bugs mailing list