# 600 - Receipts Module

600 - Receipts Module

<table data-header-hidden><thead><tr><th width="175.33333333333331">Event</th><th width="248">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_0600_1_Before</td><td>Will be executed before MSS opens the Receipts module;</td></tr><tr><td><a href="#replace">Replace</a></td><td>EXT_0600_2_Replace</td><td>Will replace MSS Receipts module;</td></tr><tr><td><a href="#after">After</a></td><td>EXT_0600_3_After</td><td>Will be executed after closing the Receipts module;</td></tr></tbody></table>

### Before

*Input Parameters*

* inDocumentType – Document type to select automatically;
* inCustomerCode – 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;
* inCustomerCode – 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;
* outOpenMSSModule – Return code: 1 – Open MSS module / 0 – Don’t open MSS module;

### After

*Input Parameters*

* inDocumentExercise – Exercise of the document;
* inDocumentType – Type of the document;
* inDocumentSeries – Series of the document;
* inDocumentNumber – Number of the document;
* inCustomerCode – Code of the selected customer;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.sysdevmobile.com/mss-extensibility/mss-5.1/functions-mss-to-kalipso/receipts/600-receipts-receipts-module.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
