https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26328
Bug ID: 26328
Summary: barcode.pl: ValueBuilder::incremental should cast
barcode to unsigned integer
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Cataloging
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected]
When using barcode.pl or barcode_manual.pl:, if a barcode is "85350E65",
because of the "E" the value builder interprets it as having exponential
notation: "8.535e69".
This happens on C4::Barcodes::ValueBuilder::incremental, on get_barcode().
When it says
SELECT MAX(ABS(barcode)) FROM items;
probably should be instead
SELECT MAX(ABS(CAST(barcode AS UNSIGNED))) FROM items;
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/