# EXT\_Receipts\_OpenModule

> MSS documentation · https://doc.sysdevmobile.com/mss/extensibility/functions-kalipso-to-mss/receipts/ext_receipts_openmodule
>
> EXT_Receipts_OpenModule abre o ecrã de recibos para criar um recibo, com tipo e cliente pré-selecionados e lista de pendentes opcional.

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;

:::info
Note: If inSaveAndClose <> 1 the value of outResultcode will be always 0 and Exercise, Type, Series and Number will be empty.
:::
