> For the complete documentation index, see [llms.txt](https://doc.sysdevmobile.com/syslog-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/syslog-extensibility/functions-syslog-kalipso/inventory/502-inventory-barcode-validation.md).

# 502 - (Inventory) Barcode Validation

502 - (Inventory) Barcode Validation

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

### Before

*Input Parameters*

* inFilterCabDoc – Unique key of the document;&#x20;
* inBarcode – Barcode;
* inLocation
* inInventoryType - A - Assistida / C - Cega

*Output Parameters*

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

### Replace

*Input Parameters*

* inStamp
* inBarcode
* inWarehouse
* inAutoMode
* inLocation
* inInventoryType - A - Assistida / C - Cega

*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
* outLastRef
* outLastDescription
* outLastQuantity
* outLastSerialNumber
* outLastLot
* outLastExpirationDate
* outLastLocation
* outUseLots - 0 - Don't use / 1 - Use
* outUseSerialNumbers - 0 - Don't use / 1 - Use&#x20;

### After

*Input Parameters*

* inStamp
* inLocation
* inBarcode – Barcode;
* inInventoryType - A - Assistida / C - Cega
