> 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.1/functions-mss-to-kalipso/purchases/3200-purchases-purchases-module.md).

# 3200 - Purchases Module

3200 - Purchases Module

<table data-header-hidden><thead><tr><th width="159.33333333333331">Event</th><th width="218">Extension action set</th><th>Description</th></tr></thead><tbody><tr><td>Event</td><td>Extension action set</td><td>Description</td></tr><tr><td><a href="#before">Before </a></td><td>EXT_3200_1_Before</td><td>Will be executed before MSS opens the Purchases module;</td></tr><tr><td><a href="#replace">Replace</a></td><td>EXT_3200_2_Replace</td><td>Will replace MSS Purchases module;</td></tr><tr><td><a href="#after">After</a></td><td>EXT_3200_3_After </td><td>Will be executed after closing the Purchases module; </td></tr></tbody></table>

### Before

*Input Parameters*

* 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;

### Replace

*Input Parameters*

* 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*

* 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;

### After

*Input Parameters*

* 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;
