Venice
Finan::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
CreateFinan
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;

pFinan->PrepareDocument (paView);

sManualIndex = pFinan->GetManualIndex ();

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

pFinan->CancelDocument ();

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

oFinan.PrepareDocument (ePrepareAction.paView);

sManualIndex = oFinan.GetManualIndex ();

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

oFinan.CancelDocument ();

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

Call oFinan.PrepareDocument(paView)

sManualIndex = oFinan.GetManualIndex()

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

Call oFinan.CancelDocument()

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

oFinan.PrepareDocument(ePrepareAction.paView)

sManualIndex = oFinan.GetManualIndex()

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

oFinan.CancelDocument()