Venice
Sndry::NeedAnaDistrib
 
Should this accounting detail be analytically distributed?
 
VARIANT_BOOL NeedAnaDistrib (
    SHORT sAccIndex,
    enum eAnaEntType eAnaEntType
)
 
Parameters
sAccIndex
[in] The index of the detail line where the analytical detail line belongs to, starting from 0.
eAnaEntType
[in] A value of the 'eAnaEntType' enumeration.
 
Return value
True if for the given detail analytical distribution is required, otherwise false.
 
See Also
CreateSndry
Handling accounting documents using the SDK
PrepareDocument
GetManualIndex
CancelDocument
 
Samples
 
C++
 
// Check if the first manual detail of the current document needs to be analytically distributed by centre
short sManualIndex;

pSndry->PrepareDocument (paView);

sManualIndex = pSndry->GetManualIndex ();

if (sManualIndex != -1)
{
    if (pSndry->NeedAnaDistrib (sManualIndex, aetCent))
    {
        // Process data
    }
}

pSndry->CancelDocument ();

C#
 
// Check if the first manual detail of the current document needs to be analytically distributed by centre
short sManualIndex;

oSndry.PrepareDocument (ePrepareAction.paView);

sManualIndex = oSndry.GetManualIndex ();

if (sManualIndex != -1)
{
    if (oSndry.NeedAnaDistrib (sManualIndex, eAnaEntType.aetCent))
    {
        // Process data
    }
}

oSndry.CancelDocument ();

VBS
 
' Check if the first manual detail of the current document needs to be analytically distributed by centre
Dim sManualIndex

Call oSndry.PrepareDocument(paView)

sManualIndex = oSndry.GetManualIndex()

If sManualIndex <> -1 Then
    If oSndry.NeedAnaDistrib(sManualIndex, aetCent) Then
        ' Process data
    End If
End If

Call oSndry.CancelDocument()

VB.NET
 
' Check if the first manual detail of the current document needs to be analytically distributed by centre
Dim sManualIndex As Short

oSndry.PrepareDocument(ePrepareAction.paView)

sManualIndex = oSndry.GetManualIndex()

If sManualIndex <> -1 Then
    If oSndry.NeedAnaDistrib(sManualIndex, eAnaEntType.aetCent) Then
        ' Process data
    End If
End If

oSndry.CancelDocument()