Fix su spazio in barcode reader.
This commit is contained in:
parent
08bdd09482
commit
c856a2b0e8
@ -51,10 +51,16 @@ public class UtilityBarcode {
|
||||
|
||||
|
||||
public static Integer getNumColloFromULAnonima(String barcode) {
|
||||
if(barcode != null){
|
||||
if(!UtilityString.isNullOrEmpty(barcode)) {
|
||||
barcode = barcode.trim();
|
||||
|
||||
if(barcode.length() <= 7){
|
||||
return Integer.parseInt(barcode.substring(3));
|
||||
} else
|
||||
return null;
|
||||
|
||||
} else
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user