|
Gets an analytical detail of one accounting detail and analytical type. |
|
|
VARIANT_BOOL GetAnaDetail ( SHORT sAccIndex, SHORT sAnaIndex, enum eAnaEntType eAnaEntType, VARIANT* pvAmountDocC, VARIANT* pvQuantity, VARIANT* pvPercentage, VARIANT* pvValue1, VARIANT* pvAnaAccount, VARIANT* pvAnaKind, VARIANT* pvRemark, VARIANT* pvText1 ) |
|
|
Parameters | sAccIndex | [in] The index of the detail line where the analytical detail line belongs to, starting from 0. | sAnaIndex | [in] The index of the analytical detail line, starting from 0. | eAnaEntType | [in] A value of the 'eAnaEntType' enumeration. | pvAmountDocC | [out] Returns a VARIANT, subtype DOUBLE, containing the amount (in document currency ) of the analytical detail. | pvQuantity | [out] Returns a VARIANT, subtype DOUBLE, containing the quantity of the analytical detail. | pvPercentage | [out] Returns a VARIANT, subtype DOUBLE, containing the percentage that is distributed for the analytical detail. | pvValue1 | [out] Returns a VARIANT, subtype DOUBLE, containing the free value of the analytical detail. | pvAnaAccount | [out] Returns a VARIANT, subtype BSTR, containing the analytical account of the analytical detail. | pvAnaKind | [out] Returns a VARIANT, subtype BSTR, containing the analytical kind of the analytical detail. | pvRemark | [out] Returns a VARIANT, subtype BSTR, containing the remark of the analytical detail. | pvText1 | [out] Returns a VARIANT, subtype BSTR, containing the free text of the analytical detail. | | Return value |
True if the analytical detail with the given index exists, otherwise false. |
|
See Also |
|
|
|
Samples |
|
|
C++ |
|
// Retrieve all analytical centre detail data of all details of the current document
VARIANT vAmountDocC, vQuantity, vPercentage, vValue1, vAnaAccount, vAnaKind, vRemark, vText1;
short sNumDetails, sNumAnaDets;
pSndry->PrepareDocument (paView);
sNumDetails = pSndry->GetNumDetails ();
for (short sDetail = 0; sDetail < sNumDetails; sDetail++)
{
sNumAnaDets = pSndry->GetNumAnaDetails (sDetail, aetCent);
for (short sAnaDet = 0; sAnaDet < sNumAnaDets; sAnaDet++)
{
if (pSndry->GetAnaDetail (sDetail, sAnaDet, aetCent, &vAmountDocC, &vQuantity, &vPercentage, &vValue1, &vAnaAccount, &vAnaKind, &vRemark, &vText1))
{
// Process data
}
}
}
pSndry->CancelDocument ();
|
|
|
C# |
|
// Retrieve all analytical centre detail data of all details of the current document
object oAmountDocC, oQuantity, oPercentage, oValue1, oAnaAccount, oAnaKind, oRemark, oText1;
short sNumDetails, sNumAnaDets;
oSndry.PrepareDocument (ePrepareAction.paView);
sNumDetails = oSndry.GetNumDetails ();
for (short sDetail = 0; sDetail < sNumDetails; sDetail++)
{
sNumAnaDets = oSndry.GetNumAnaDetails (sDetail, eAnaEntType.aetCent);
for (short sAnaDet = 0; sAnaDet < sNumAnaDets; sAnaDet++)
{
if (oSndry.GetAnaDetail (sDetail, sAnaDet, eAnaEntType.aetCent, out oAmountDocC, out oQuantity, out oPercentage, out oValue1, out oAnaAccount, out oAnaKind, out oRemark, out oText1))
{
// Process data
}
}
}
oSndry.CancelDocument ();
|
|
|
VBS |
|
' Retrieve all analytical centre detail data of all details of the current document
Dim oAmountDocC, oQuantity, oPercentage, oValue1, oAnaAccount, oAnaKind, oRemark, oText1
Dim sDetail, sAnaDet, sNumDetails, sNumAnaDets
Call oSndry.PrepareDocument(paView)
sNumDetails = oSndry.GetNumDetails()
For sDetail = 0 To sNumDetails - 1
sNumAnaDets = oSndry.GetNumAnaDetails(sDetail, aetCent)
For sAnaDet = 0 To sNumAnaDets - 1
If oSndry.GetAnaDetail(sDetail, sAnaDet, aetCent, oAmountDocC, oQuantity, oPercentage, oValue1, oAnaAccount, oAnaKind, oRemark, oText1) Then
' Process data
End If
Next
Next
Call oSndry.CancelDocument()
|
|
|
VB.NET |
|
' Retrieve all analytical centre detail data of all details of the current document
Dim oAmountDocC, oQuantity, oPercentage, oValue1, oAnaAccount, oAnaKind, oRemark, oText1 As Object
Dim sNumDetails, sNumAnaDets As Short
oSndry.PrepareDocument(ePrepareAction.paView)
sNumDetails = oSndry.GetNumDetails()
For sDetail As Short = 0 To sNumDetails - 1
sNumAnaDets = oSndry.GetNumAnaDetails(sDetail, eAnaEntType.aetCent)
For sAnaDet As Short = 0 To sNumAnaDets - 1
If oSndry.GetAnaDetail(sDetail, sAnaDet, eAnaEntType.aetCent, oAmountDocC, oQuantity, oPercentage, oValue1, oAnaAccount, oAnaKind, oRemark, oText1) Then
' Process data
End If
Next
Next
oSndry.CancelDocument()
|
|