Difference between document abort and document cancellation
- Document abort means the abort of the document before the document was stored (to database, filesystem and fiscal system)
- Document cancellation means the cancellation of a previous stored document.
To implement a document abort you've to do the following:
The difference of aborting a document to storing the document is to use the method CancelDocument instead of the method StoreDocument at the end of the document creation process.
Therefore the process to abort a document is the following:
- Add items, discounts, etc.
- CancelDocument (instead of StoreDocument)
For detailed information about the document object module please refer to the document object model documentation.