Finan::GetDetail2 (Interface: Finan)
 
Gets an extended accounting detail from the document.
 
VARIANT_BOOL GetDetail2 (
    SHORT sIndex,
    VARIANT* pvAmountDocC,
    VARIANT* pvQuantity,
    VARIANT* pvValue1,
    VARIANT* pvAccount,
    VARIANT* pvRemark,
    VARIANT* pvText1,
    VARIANT* pvAmountDetC,
    VARIANT* pvDetC,
    VARIANT* pvTickSysNum,
    VARIANT* pvEntrySysNum,
    VARIANT* pvInterCompany,
    VARIANT* pvCutOffAccount,
    VARIANT* pvCutOffStart,
    VARIANT* pvCutOffEnd
)
 
Parameters
sIndex
[in] The index of the detail, starting from 0.
pvAmountDocC
[out] Returns a VARIANT, subtype DOUBLE, containing the amount (in document currency) of the detail.
pvQuantity
[out] Returns a VARIANT, subtype DOUBLE, containing the quantity of the detail.
pvValue1
[out] Returns a VARIANT, subtype DOUBLE, containing the free value of the detail.
pvAccount
[out] Returns a VARIANT, subtype BSTR, containing the general account of the detail.
pvRemark
[out] Returns a VARIANT, subtype BSTR, containing the remark of the detail.
pvText1
[out] Returns a VARIANT, subtype BSTR, containing the free text of the detail.
pvAmountDetC
[out] Returns a VARIANT, subtype DOUBLE, containing the amount (in detail currency) of the detail.
pvDetC
[out] Returns a VARIANT, subtype BSTR, containing the detail currency of the detail.
pvTickSysNum
[out] Returns a VARIANT, subtype LONG, containing the system number of the detail that is ticked by this detail.
pvEntrySysNum
[out] Returns a VARIANT, subtype LONG, containing the system number of the detail.
pvInterCompany
[out] Returns a VARIANT, subtype BOOLEAN, containing the inter-company flag of the detail.
pvCutOffAccount
[out] Returns a VARIANT, subtype BSTR, containing the cut off account number of the detail.
pvCutOffStart
[out] Returns a VARIANT, subtype DATE, containing the cut off start date of the detail.
pvCutOffEnd
[out] Returns a VARIANT, subtype DATE, containing the cut off end date of the detail.
 
Return value
True if the detail with the given index exists, otherwise false.
 
See Also
CreateFinan
Handling accounting documents using the SDK
GetDetail
PrepareDocument
GetNumDetails
CancelDocument
 
Samples
 
C++
 
// Retrieve all detail data of the current document
VARIANT vAmountDocC, vQuantity, vValue1, vAccount, vRemark, vText1, vAmountDetC, vDetC, vTickSysNum, vEntrySysNum, vInterCompany, vCutOffAccount, vCutOffStart, vCutOffEnd;
short sNumDetails;

pFinan->PrepareDocument (paView);

sNumDetails = pFinan->GetNumDetails ();

for (short sDetail = 0; sDetail < sNumDetails; sDetail++)
{
    if (pFinan->GetDetail2 (sDetail, &vAmountDocC, &vQuantity, &vValue1, &vAccount, &vRemark, &vText1, &vAmountDetC, &vDetC, &vTickSysNum, &vEntrySysNum, &vInterCompany, &vCutOffAccount, &vCutOffStart, &vCutOffEnd))
    {
        // Process data
    }
}

pFinan->CancelDocument ();

C#
 
// Retrieve all detail data of the current document
object oAmountDocC, oQuantity, oValue1, oAccount, oRemark, oText1, oAmountDetC, oDetC, oTickSysNum, oEntrySysNum, oInterCompany, oCutOffAccount, oCutOffStart, oCutOffEnd;
short sNumDetails;

oFinan.PrepareDocument (ePrepareAction.paView);

sNumDetails = oFinan.GetNumDetails ();

for (short sDetail = 0; sDetail < sNumDetails; sDetail++)
{
    if (oFinan.GetDetail2 (sDetail, out oAmountDocC, out oQuantity, out oValue1, out oAccount, out oRemark, out oText1, out oAmountDetC, out oDetC, out oTickSysNum, out oEntrySysNum, out oInterCompany, out oCutOffAccount, out oCutOffStart, out oCutOffEnd))
    {
        // Process data
    }
}

oFinan.CancelDocument ();

VBS
 
' Retrieve all detail data of the current document
Dim oAmountDocC, oQuantity, oValue1, oAccount, oRemark, oText1, oAmountDetC, oDetC, oTickSysNum, oEntrySysNum, oInterCompany, oCutOffAccount, oCutOffStart, oCutOffEnd
Dim sDetail, sNumDetails

Call oFinan.PrepareDocument(paView)

sNumDetails = oFinan.GetNumDetails()

For sDetail = 0 To sNumDetails - 1
    If oFinan.GetDetail2(sDetail, oAmountDocC, oQuantity, oValue1, oAccount, oRemark, oText1, oAmountDetC, oDetC, oTickSysNum, oEntrySysNum, oInterCompany, oCutOffAccount, oCutOffStart, oCutOffEnd) Then
        ' Process data
    End If
Next

Call oFinan.CancelDocument()

VB.NET
 
' Retrieve all detail data of the current document
Dim oAmountDocC, oQuantity, oValue1, oAccount, oRemark, oText1, oAmountDetC, oDetC, oTickSysNum, oEntrySysNum, oInterCompany, oCutOffAccount, oCutOffStart, oCutOffEnd As Object
Dim sNumDetails As Short

oFinan.PrepareDocument(ePrepareAction.paView)

sNumDetails = oFinan.GetNumDetails()

For sDetail As Short = 0 To sNumDetails - 1
    If oFinan.GetDetail2(sDetail, oAmountDocC, oQuantity, oValue1, oAccount, oRemark, oText1, oAmountDetC, oDetC, oTickSysNum, oEntrySysNum, oInterCompany, oCutOffAccount, oCutOffStart, oCutOffEnd) Then
        ' Process data
    End If
Next

Call oFinan.CancelDocument()