# EXT\_Receipts\_Cancel

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;
