Venice
SOrder::Cancel
 
Cancels the current Sales Order.
 
VARIANT_BOOL Cancel ()
 
Return value
Returns True if the current Sales Order could be cancelled, otherwise False.
 
See Also
CreateSOrder
SeekBySysNum
 
Samples
 
C++
 
// Cancel the last entered Sales Order
if (pSOrder->SeekBySysNum (smLast, 0))
    pSOrder->Cancel ();

C#
 
// Cancel the last entered Sales Order
if (oSOrder.SeekBySysNum (eSeekMode.smLast, 0))
    oSOrder.Cancel ();

VBS
 
' Cancel the last entered Sales Order
If oSOrder.SeekBySysNum(smLast, 0) Then
    Call oSOrder.Cancel()
End If

VB.NET
 
' Cancel the last entered Sales Order
If oSOrder.SeekBySysNum(eSeekMode.smLast, 0) Then
    oSOrder.Cancel()
End If