# 3200 - (Purchases) Purchases Module

3200 - (Purchases) Purchases Module

| Event   | Extension action set  | Description                                             |
| ------- | --------------------- | ------------------------------------------------------- |
| Before  | EXT\_3200\_1\_Before  | Will be executed before MSS opens the Purchases module; |
| Replace | EXT\_3200\_2\_Replace | Will replace MSS Purchases module;                      |
| After   | EXT\_3200\_3\_After   | Will be executed after closing the Purchases module;    |

*Input Parameters (event before):*

* inDocumentType – Document type to select automatically;
* inSupplierCode – Customer code to select automatically;
* inDeliveryPlaceCode – Delivery place to select automatically;
* inRouteCode – Active route code;
* inSubRouteCode – Active sub-route code;

*Input Parameters* *(event replace):*

* inDocumentType – Document type to select automatically;
* inSupplierCode – Customer code to select automatically;
* inDeliveryPlaceCode – Delivery place to select automatically;
* inRouteCode – Active route code;
* inSubRouteCode – Active sub-route code;

*Output Parameters (event replace):*

* outResultCode – Return code: 1 – a document was created / 0 – no document was created;
* outEXR – Exercise of the document created;
* outTPD – Document type;
* outSER – Serie;
* outNDC – Number;

*Input Parameters (event after):*

* inDocumentExercise – Exercise of the document;&#x20;
* inDocumentType – Type of the document;&#x20;
* inDocumentSeries – Series of the document;&#x20;
* inDocumentNumber – Number of the document;&#x20;
* inSupplierCode – Code of the selected customer;
