Blog - Developers - 30/11/2018
Example of bar code reader management
This example shows how to integrate a barcode reader into a fiscal document:
In this example, a "bar code" field was introduced into the document and the script was activated to modify it. When modified (I read a bar code with the cursor positioned inside it), the script, if it finds the "£" character at the bottom, searches the code within the articles. The character was chosen because it will never be used in the codes. This character is automatically entered at the end of the code reading by the reader (to run this setting, see the possible settings of the reader). If the item is found, a new row is created within the document, uploading its data. If there is already a row that calls the code, the quantity will be increased.