# 202 - Barcode Validation

> Syslog 4.0 documentation · https://doc.sysdevmobile.com/syslog/extensibility/packing/202-packing-barcode-validation
>
> Função 202 do packing: ações EXT_0202 Before, Replace e After na validação do código de barras, com parâmetros de entrada e códigos de retorno.

202 - (Packing) Barcode Validation

| **Event**                                            | **Extension action set** | **Description**                                 |
| ---------------------------------------------------- | ------------------------ | ----------------------------------------------- |
| [Before ](https://doc.sysdevmobile.com/syslog/extensibility/packing/202-packing-barcode-validation.md#before)  | EXT\_0202\_1\_Before     | Will be executed before barcode validation;     |
| [Replace](https://doc.sysdevmobile.com/syslog/extensibility/packing/202-packing-barcode-validation.md#replace) | EXT\_0202\_2\_Replace    | Will be executed to replace barcode validation; |
| [After](https://doc.sysdevmobile.com/syslog/extensibility/packing/202-packing-barcode-validation.md#after)     | EXT\_0202\_3\_After      | Will be executed after barcode validation;      |

### Before

_Input Parameters_

* inFilterCabDoc – Unique key of the document;
* inBarcode – Barcode;

_Output Parameters_

* outCanSave – Return code:
  * 1 - Continue Validation
  * 0 – Cancel
* outContinue
* outRef
* outBarcodeQuantity

### Replace

_Input Parameters_

* inFilterCabDoc – Unique key of the document;
* inBarcode – Barcode;
* inLinesSQL
* inMULTI\_DOCUMENT
* inSelectedClient
* inBoStampDocToWork
* inSelectedCabDoc
* inOriginDocType
* inCabUserFieldsList
* inLinUserFieldsList
* inDocName
* inDestinationDocSelected
* inEntityName
* inCloseLine
* inWarehouse
* inAutoMode

_Output Parameters_

* outCanSave – Return code:
  * 0- Cancel
  * 1 - Done - Barcode inserted into the database, refresh list of articles to pick
  * 2 - Continue - Normal behavior

### After

_Input Parameters_

* inFilterCabDoc – Unique key of the document;
