Venice
Purch::GetManualIndex
 
Gets the index of the first manual accounting detail.
 
SHORT GetManualIndex ()
 
Return value
Returns the index of the first manual detail if one is present, otherwise -1.
 
See Also
CreatePurch
Handling accounting documents using the SDK
PrepareDocument
CancelDocument
 
Samples
 
C++
 
// Get the index of the first manual detail of the current document
short sManualIndex;

pPurch->PrepareDocument (paView);

sManualIndex = pPurch->GetManualIndex ();

if (sManualIndex != -1)
{
    // Process data
}

pPurch->CancelDocument ();

C#
 
// Get the index of the first manual detail of the current document
short sManualIndex;

oPurch.PrepareDocument (ePrepareAction.paView);

sManualIndex = oPurch.GetManualIndex ();

if (sManualIndex != -1)
{
    // Process data
}

oPurch.CancelDocument ();

VBS
 
' Get the index of the first manual detail of the current document
Dim sManualIndex

Call oPurch.PrepareDocument(paView)

sManualIndex = oPurch.GetManualIndex()

If sManualIndex <> -1 Then
    ' Process data
End If

Call oPurch.CancelDocument()

VB.NET
 
' Get the index of the first manual detail of the current document
Dim sManualIndex As Short

oPurch.PrepareDocument(ePrepareAction.paView)

sManualIndex = oPurch.GetManualIndex()

If sManualIndex <> -1 Then
    ' Process data
End If

oPurch.CancelDocument()