# 506 - (Sales) Read Barcode

506 - (Sales) Read Barcode

| Event   | Extension action set  | Description                                                  |
| ------- | --------------------- | ------------------------------------------------------------ |
| Before  | EXT\_0506\_1\_Before  | Will be executed before MSS opens the Barcode reader screen; |
| Replace | EXT\_0506\_2\_Replace | Will replace MSS Barcode reader screen;                      |
| After   | EXT\_0506\_3\_After   | Will be executed after the user reads a Barcode;             |

*Input Parameters (event before):*

* inDocumentExercise – Exercise of the document;
* inDocumentType – Type of the document;
* inDocumentSeries – Series of the document;
* inDocumentNumber – Number of the document;
* inCustomerCode – Code of the selected customer;

*Input Parameters* *(event replace):*

* inDocumentExercise – Exercise of the document;
* inDocumentType – Type of the document;
* inDocumentSeries – Series of the document;
* inDocumentNumber – Number of the document;
* inCustomerCode – Code of the selected customer;

*Output Parameters (event replace):*

* outResultCode – Return code: 1 – a Barcode was read / 0 – Cancel;
* outBarcode – Barcode that was read;

*Input Parameters (event after):*

* inDocumentExercise – Exercise of the document;
* inDocumentType – Type of the document;
* inDocumentSeries – Series of the document;
* inDocumentNumber – Number of the document;
* inCustomerCode – Code of the selected customer;
