> 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-kalipso-to-mss/receipts/ext_receipts_openmodule.md).

# EXT\_Receipts\_OpenModule

Function to ask MSS to open the Receipts screen to create a new receipt.

*Input parameters*:

* inDocumentType – Type of receipt to select automatically;
* inCustomerCode – Customer code to select automatically;
* inSaveAndClose – Close the windows after save;
* inShowDocs – Used to open directly the list of pending documents. Possible values True/False;

*Output parameters*:

* outResultCode – Return code: 0 – Done / < 0 User canceled selection or error occurred;
* outDocumentExercise – Exercise of the new receipt;
* outDocumentType – Type of the new receipt;
* outDocumentSeries – Series of the new receipt;
* outDocumentNumber – Number of the receipt;

{% hint style="info" %}
Note: If inSaveAndClose <> 1 the value of outResultcode will be always 0 and Exercise, Type, Series and Number will be empty.
{% endhint %}
