Venice
Sales::CancelDocument
 
Cancels the document preparation and all wanted changes.
 
void CancelDocument ()
 
 
See Also
CreateSales
Handling accounting documents using the SDK
PrepareDocument
WriteDocument
 
Samples
 
C++
 
// Prepare the object to duplicate the current document...
pSales->PrepareDocument (paDuplicate);
// ...and then decide to cancel this action.
pSales->CancelDocument ();

C#
 
// Prepare the object to duplicate the current document...
oSales.PrepareDocument (ePrepareAction.paDuplicate);
// ...and then decide to cancel this action.
oSales.CancelDocument ();

VBS
 
' Prepare the object to duplicate the current document...
Call oSales.PrepareDocument(paDuplicate)
' ...and then decide to cancel this action.
Call oSales.CancelDocument()

VB.NET
 
' Prepare the object to duplicate the current document...
oSales.PrepareDocument(ePrepareAction.paDuplicate)
' ...and then decide to cancel this action.
oSales.CancelDocument()