# EXT\_Orders\_OpenModule

> MSS documentation · https://doc.sysdevmobile.com/mss/extensibility/functions-kalipso-to-mss/orders/ext_orders_openmodule
>
> EXT_Orders_OpenModule abre o ecrã de encomendas para criar uma encomenda, com tipo de documento e cliente pré-selecionados.

Function to ask MSS to open the Orders screen to create a new order.

_Input parameters_:

* inDocumentType – Type of document to select automatically;
* inCustomerCode – Customer code to select automatically;
* inSaveAndClose – Close the windows after save;

_Output parameters_:

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

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