|
Gets the number of analytical details for one accounting detail and analytical type. |
|
 |
SHORT GetNumAnaDetails ( 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 |
A SHORT containing the number of analytical details of the current document. | | Remarks |
 | If the analytical option is not active in the dossier, this method returns 0. |
|
|
See Also |
|
|
|
Samples |
|
 |
C++ |
|
// Get the number of analytical details by centre of the first manual detail of the current document
short sManualIndex;
pSales->PrepareDocument (paView);
sManualIndex = pSales->GetManualIndex ();
if (sManualIndex != -1)
{
short sNumAnaDets = pSales->GetNumAnaDetails (sManualIndex, aetCent);
if (sNumAnaDets != 0)
{
// Process data
}
}
pSales->CancelDocument ();
|
|
 |
C# |
|
// Get the number of analytical details by centre of the first manual detail of the current document
short sManualIndex;
oSales.PrepareDocument (ePrepareAction.paView);
sManualIndex = oSales.GetManualIndex ();
if (sManualIndex != -1)
{
short sNumAnaDets = oSales.GetNumAnaDetails (sManualIndex, eAnaEntType.aetCent);
if (sNumAnaDets != 0)
{
// Process data
}
}
oSales.CancelDocument ();
|
|
 |
VBS |
|
' Get the number of analytical details by centre of the first manual detail of the current document
Dim sManualIndex
Call oSales.PrepareDocument(paView)
sManualIndex = oSales.GetManualIndex()
If sManualIndex <> -1 Then
Dim sNumAnaDets
sNumAnaDets = oSales.GetNumAnaDetails(sManualIndex, aetCent)
If sNumAnaDets <> 0 Then
' Process data
End If
End If
Call oSales.CancelDocument()
|
|
 |
VB.NET |
|
' Get the number of analytical details by centre of the first manual detail of the current document
Dim sManualIndex As Short
oSales.PrepareDocument(ePrepareAction.paView)
sManualIndex = oSales.GetManualIndex()
If sManualIndex <> -1 Then
Dim sNumAnaDets As Short
sNumAnaDets = oSales.GetNumAnaDetails(sManualIndex, eAnaEntType.aetCent)
If sNumAnaDets <> 0 Then
' Process data
End If
End If
oSales.CancelDocument()
|
|