[MERGE] from trunk
[FIX] point_of_sale: make sure that internal reference barcodes don't conflict with ean barcodes
[MERGE] from trunk
[MERGE] point_of_sale: fix to avoid internal references shadowing EAN13 barcodes