# EXT\_Sales\_OpenModule

> MSS documentation · https://doc.sysdevmobile.com/mss/extensibility/functions-kalipso-to-mss/sales/ext_sales_openmodule
>
> EXT_Sales_OpenModule abre o ecrã de vendas para criar uma venda, com tipo de documento e cliente pré-selecionados.

Function to ask MSS to open the Sales screen to create a new sale.

_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.
:::
