koha-bugs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: bugzilla-daemon
Subject: [Koha-bugs] [Bug 185] Barcode not auto-calculated when autobarcode is on
Date: 28 Nov 2004 09:54:03 -0000

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

address@hidden changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|address@hidden        |address@hidden



------- Additional Comments From address@hidden  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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]