AccProp::InsertDetailSel (Interface: AccProp)
 
Inserts an accounting new detail in the proposal (with selectively given values).
 
void InsertDetailSel (
    SHORT sIndex,
    VARIANT vAmountDocC,
    VARIANT vQuantity,
    VARIANT vValue1,
    VARIANT vAccount,
    VARIANT vRemark,
    VARIANT vText1
)
 
Parameters
sIndex
[in] The index of the detail, starting from 0.
vAmountDocC
[in] A VARIANT stating the monetary amount (in proposal currency) of the detail.
If a VARIANT of subtype VT_EMPTY is supplied, the programmatorical default (0.0) is used.
If a VARIANT of subtype DOUBLE (VT_R8) is supplied, the given value is used.
vQuantity
[in] A VARIANT stating the quantity of the detail.
If a VARIANT of subtype VT_EMPTY is supplied, the programmatorical default (0.0) is used.
If a VARIANT of subtype DOUBLE (VT_R8) is supplied, the given value is used.
vValue1
[in] A VARIANT stating the free value of the detail.
If a VARIANT of subtype VT_EMPTY is supplied, the programmatorical default (0.0) is used.
If a VARIANT of subtype DOUBLE (VT_R8) is supplied, the given value is used.
vAccount
[in] A VARIANT stating the account number of the detail.
If a VARIANT of subtype VT_EMPTY is supplied, the programmatorical default ("") is used.
If a VARIANT of subtype BSTR (VT_BSTR) is supplied, the given value is used.
vRemark
[in] A VARIANT stating the remark of the detail.
If a VARIANT of subtype VT_EMPTY is supplied, the programmatorical default ("") is used.
If a VARIANT of subtype BSTR (VT_BSTR) is supplied, the given value is used.
vText1
[in] A VARIANT stating the free text of the detail.
If a VARIANT of subtype VT_EMPTY is supplied, the programmatorical default ("") is used.
If a VARIANT of subtype BSTR (VT_BSTR) is supplied, the given value is used.
 
See Also
CreateAccProp
 
Samples
 
C++
 
// Insert the first detail line of a new proposal. Only the account number is given, for all other data the programmatorical default should be used.
VARIANT vEmpty;
vEmpty.vt = VT_EMPTY;

pAccProp->PrepareProposal (paInsert);

// Fill the necessary header data

pAccProp->InsertDetailSel (-1, vEmpty, vEmpty, vEmpty, "700", vEmpty, vEmpty);

pAccProp->WriteProposal (rmFullReport);

C#
 
// Insert the first detail line of a new proposal. Only the account number is given, for all other data the programmatorical default should be used.
oAccProp.PrepareProposal (ePrepareAction.paInsert);

// Fill the necessary header data

oAccProp.InsertDetailSel (-1, null, null, null, "700", null, null);

oAccProp.WriteProposal (eReportMode.rmFullReport);

VBS
 
' Insert the first detail line of a new proposal. Only the account number is given, for all other data the programmatorical default should be used.
Call oAccProp.PrepareProposal(paInsert)

' Fill the necessary header data

Call oAccProp.InsertDetailSel(-1, Empty, Empty, Empty, "700", Empty, Empty)

Call oAccProp.WriteProposal(rmFullReport)

VB.NET
 
' Insert the first detail line of a new proposal. Only the account number is given, for all other data the programmatorical default should be used.
oAccProp.PrepareProposal(ePrepareAction.paInsert)

' Fill the necessary header data

oAccProp.InsertDetailSel(-1, Nothing, Nothing, Nothing, "700", Nothing, Nothing)

oAccProp.WriteProposal(eReportMode.rmFullReport)