Purch::WriteDocument (Interface: Purch)
 
Inserts or updates the prepared document.
 
void WriteDocument (
    enum eReportMode eReportMode
)
 
Parameters
eReportMode
[in] A value of the 'eReportMode' enumeration.
 
See Also
CreatePurch
Handling accounting documents using the SDK
PrepareDocument
CancelDocument
 
Samples
 
C++
 
// Change the book date of the current document to 17/09/2024
pPurch->PrepareDocument (paUpdate);

pPurch->pBookDate = COleDateTime (2024, 9, 17, 0, 0, 0).m_dt;

pPurch->WriteDocument (rmFullReport);

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

oPurch.pBookDate = new DateTime (2024, 9, 17);

oPurch.WriteDocument (eReportMode.rmFullReport);

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

oPurch.pBookDate = #9/17/2024#

Call oPurch.WriteDocument(rmFullReport)

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

oPurch.pBookDate = #9/17/2024#

oPurch.WriteDocument (eReportMode.rmFullReport)