> For the complete documentation index, see [llms.txt](https://doc.sysdevmobile.com/mss-extensibility/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.sysdevmobile.com/mss-extensibility/mss-5.0/mss-extension-functions-mss-kalipso/purchases/3206-purchases-read-barcode.md).

# 3206 - (Purchases) Read Barcode

3206 - (Purchases) Read Barcode

| Event   | Extension action set  | Description                                                  |
| ------- | --------------------- | ------------------------------------------------------------ |
| Before  | EXT\_3206\_1\_Before  | Will be executed before MSS opens the Barcode reader screen; |
| Replace | EXT\_3206\_2\_Replace | Will replace MSS Barcode reader screen;                      |
| After   | EXT\_3206\_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;
