# 302 - Barcode Validation

302 - (Store In) Barcode Validation

| **Event**           | **Extension action set** | **Description**                                 |
| ------------------- | ------------------------ | ----------------------------------------------- |
| [Before ](#before)  | EXT\_0302\_1\_Before     | Will be executed before barcode validation;     |
| [Replace](#replace) | EXT\_0302\_2\_Replace    | Will be executed to replace barcode validation; |
| [After](#after)     | EXT\_0302\_3\_After      | Will be executed after barcode validation;      |

### Before

*Input Parameters*

* inFilterCabDoc – Unique key of the document;
* inFilterNumDoc
* inFilterTipDoc
* inBarcode – Barcode;
* inSupplierNumber

*Output Parameters*

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

### Replace

*Input Parameters*

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

*Output Parameters*

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

### After

*Input Parameters*

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

*Output Parameters*

* outCanSave – Return code:&#x20;
  * 0 - Cancel&#x20;
  * 1 - Continue
