open-prices-frontend
open-prices-frontend copied to clipboard
On price add, if the barcode is new, check if EAN is valid (checksum)
Story
Sometimes when the user adds a price, the product is unknown
- most of the time it is indeed a new product not yet present in OFF / OBF / ...
- but sometimes the scanning may have returned a wrong code : in this case, we could check if the EAN is valid
How
https://www.npmjs.com/package/barcode-validator ?