Skip to content

Commit

Permalink
Merge 557f2b6 into 800dbb3
Browse files Browse the repository at this point in the history
  • Loading branch information
JordiBForgeFlow committed Nov 14, 2019
2 parents 800dbb3 + 557f2b6 commit 0ee8267
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions stock_barcodes_gs1/wizard/stock_barcodes_read.py
Expand Up @@ -38,6 +38,11 @@ def process_barcode(self, barcode):
processed = False
package_barcode = barcode_decoded.get('01', False)
product_barcode = barcode_decoded.get('02', False)
if not product_barcode:
# Sometimes the product does not yet have a GTIN. In this case
# try the AI 240 'Additional product identification assigned
# by the manufacturer'.
product_barcode = barcode_decoded.get('240', False)
lot_barcode = barcode_decoded.get('10', False)
product_qty = barcode_decoded.get('37', False)
if product_barcode:
Expand Down

0 comments on commit 0ee8267

Please sign in to comment.