# 613 - Documents button click (Receipt Header)

613 - Documents button click (Receipt Header)

<table data-header-hidden><thead><tr><th width="199.33333333333331">Event</th><th>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_0613_1_Before</td><td>Will be executed before MSS opens the list of pending documents</td></tr><tr><td><a href="#replace">Replace</a></td><td>EXT_0613_2_Replace</td><td>Will be executed before MSS opens the list of pending documents with the possibility to cancel the operation</td></tr><tr><td><a href="#after">After</a></td><td>EXT_0613_3_After</td><td>Will be executed after MSS opens the list of pending documents</td></tr></tbody></table>

### Before

Input Parameters

* inReceiptExercise – Exercise of the receipt;&#x20;
* inReceiptType – Type of the receipt;&#x20;
* inReceiptSeries – Series of the receipt;&#x20;
* inReceiptNumber – Number of the receipt;&#x20;
* inReceiptCode – Code of the selected customer;

### Replace

Input Parameters

* inReceiptExercise – Exercise of the receipt;&#x20;
* inReceiptType – Type of the receipt;&#x20;
* inReceiptSeries – Series of the receipt;&#x20;
* inReceiptNumber – Number of the receipt;&#x20;
* inReceiptCode – Code of the selected customer;

Output Parameters&#x20;

* outContinue – Return code: 1 – Continue the process / 0 – Cancel;

### After

Input Parameters&#x20;

* inReceiptExercise – Exercise of the receipt;&#x20;
* inReceiptType – Type of the receipt;&#x20;
* inReceiptSeries – Series of the receipt;&#x20;
* inReceiptNumber – Number of the receipt;&#x20;
* inReceiptCode – 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/613-documents-button-click-receipt-header.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.
