You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 47 Current »
The Mobile app can convert custom barcodes into the recommended Encoded Barcode (GS1)
You should use always use or print GS1 barcodes See Best Practice: Labeling Items.
However, some times this is not possible and other types like simple barcodes, must be scanned.
Use converters to capture, identity and convert barcodes to GS1 AI's.
When you want custom barcodes to be handled in the entire app.
When you want to search Order Lines page by barcode.
Converter expressions are wriiten as Regular Expressions.
Tip: To make sure no partial matces are made, use capture groups "()" and also "$" to end the expression.
Convert to
^(\d{1,4})$
^(\d{13})$
-
Different positions of a barcode, is broken into diffent AI's.
... <scanner> <type>internal</type> <converter enabled="true" type="custom2gs1"> <customConfiguration expression="^64(\w{1,8})(\d{1,4})(\d{1,3})(\w{1,10})$" expressionAis="10,37,92,91"/> </converter> ...
Position
Length
Description
1
2
A fixed value that is always "64"
3
8
External Order No.
11
4
Quantity
15
Quantity per Unit of Measure
18
10
SupplyID (Internal item)
convertGS1Input: Should be set to true if one wishes to convert from a GS1 barcode to GS1.
This could be in cases when the barcode scanned contains AIs that are not supported and when printing a new label is not an option.
... <scanner> <type>internal</type> <converter enabled="true" type="custom2gs1" > <customConfiguration expression="^01(\d{14})11(\d{6})21(.{1,})$" expressionAis="91,10,21" convertGS1Input="true"/> </converter> ...
Since AI91 is already regarded as "Item No." but without the length constraint of AI01,
This can be used for many 1D (linear) barcodes like Code39 or Code128.
In this example the data is 20 char, but can be arbritary length since AI91 allows for this.
<page id="ReceiveLines" type="OrderLines" icon="mainmenureceive"> <title defaultValue="@{PageReceiveOrderLinesTitle}"/> <orderLinesConfiguration suggestQuantity="true" verifySingleScanRegistrations="false" actionOnEmptyList="ClosePage"> <service id="Receive"/> <list listId="OrderLines"/> <...> <scanToSelectBehaviour gs1SearchTerm="Item" behaviour="Auto"> <converter expression="^(\d{1,20})$" expressionAis="91"/> </scanToSelectBehaviour> </orderLinesConfiguration>
This can be the result of using AI01 which defines a fixed length of 14 char.
Use AI91 instead.
Use an online editor to test your regular expressions.
https://regex101.com/
Encoded barcodes like Datamatrix has data in two dimensions, unlike simple 1d barcodes like Code128
Mobile WMS will accepts these AI's as standard