# EXT\_Receipts\_Cancel

> MSS documentation · https://doc.sysdevmobile.com/mss/extensibility/functions-kalipso-to-mss/receipts/ext_receipts_cancel
>
> EXT_Receipts_Cancel anula um recibo (exercício, tipo, série, número), com o motivo indicado ou escolhido na janela de motivos.

Function to ask MSS to cancel a receipt.

_Input parameters:_

* inDocumentExercise – Exercise of the receipt;
* inDocumentType – Type of the receipt;
* inDocumentSeries – Series of the receipt;
* inDocumentNumber – Number of the receipt;
* inCancelCode – If not empty MSS will cancel the receipt with this motive code, otherwise will open MSS cancel motive selection window;

_Output parameters:_

* outResultCode – Return code: 0 – Done / < 0 User canceled selection or error occurred;
