SOrder::PrepareDocument (Interface: SOrder)
 
Prepares the object for handling an order and its details.
 
void PrepareDocument (
    enum ePrepareAction ePrepareAction
)
 
Parameters
ePrepareAction
[in] A value of the 'ePrepareAction' enumeration.
 
See Also
CreateSOrder
Handling invoicing documents using the SDK
WriteDocument
CancelDocument
 
Samples
 
C++
 
// Change the document date of the current document to 17/09/2024
pSOrder->PrepareDocument (paUpdate);

pSOrder->pDocDate = COleDateTime (2024, 9, 17, 0, 0, 0).m_dt;

pSOrder->WriteDocument (rmFullReport, VARIANT_FALSE, VARIANT_FALSE);

C#
 
// Change the document date of the current document to 17/09/2024
oSOrder.PrepareDocument (ePrepareAction.paUpdate);

oSOrder.pDocDate = new DateTime (2024, 9, 17);

oSOrder.WriteDocument (eReportMode.rmFullReport, false, false);

VBS
 
' Change the document date of the current document to 17/09/2024
Call oSOrder.PrepareDocument(paUpdate)

oSOrder.pDocDate = #9/17/2024#

Call oSOrder.WriteDocument(rmFullReport, False, False)

VB.NET
 
' Change the document date of the current document to 17/09/2024
oSOrder.PrepareDocument(ePrepareAction.paUpdate)

oSOrder.pDocDate = #9/17/2024#

oSOrder.WriteDocument (eReportMode.rmFullReport, False, False)