# 603 - Cancel Receipt

> MSS documentation · https://doc.sysdevmobile.com/mss/extensibility/functions-mss-to-kalipso/receipts/603-cancel-receipt
>
> Eventos EXT_0603 ao anular um recibo: o Before pode abortar o processo e o Replace substitui a anulação, devolvendo outReceiptCancelled.

603 - Cancel Receipt

| Event | Extension action set | Description |
| --- | --- | --- |
| Before | EXT_0603_1_Before | Will be executed before MSS cancel the receipt, can abort the process; |
| [Replace](https://doc.sysdevmobile.com/mss/extensibility/functions-mss-to-kalipso/receipts/603-cancel-receipt.md#replace) | EXT_0603_2_Replace | Replace MSS cancel receipt code, must return if the receipt was cancelled or not; |
| After | EXT_0603_3_After | Will be executed after the receipt is cancelled; |

### All events

_Input Parameters_

* inReceiptExercise – Exercise of the Receipt;
* inReceiptType – Type of the Receipt;
* inReceiptSeries – Series of the Receipt;
* inReceiptNumber – Number of the Receipt;
* inCustomerCode – Code of the selected customer;

### Before

_Output Parameters_

* outAbortProcess – Return code: TRUE – Abort the process / FALSE – Continue

### Replace

_Output Parameters_

* outReceiptCancelled – Return code: TRUE – Receipt was cancelled and MSS must continue / FALSE – Receipt was not cancelled and MSS must stop;
