Venice
Purch::SetPayInfo
 
Sets the payment information of the document.
 
void SetPayInfo (
    DOUBLE dPayDocC,
    DOUBLE dDiscountDocC,
    enum eCircCheque eCircCheque,
    VARIANT_BOOL bGlobalize,
    BSTR bsGroup,
    BSTR bsCommunication,
    BSTR bsBankAccount,
    BSTR bsPayMethod,
    BSTR bsCosts,
    BSTR bsTransactionCode,
    BSTR bsJustification
)
 
Parameters
dPayDocC
[in] The amount (in document currency ) that has to be payed.
dDiscountDocC
[in] The amount of the cash discount (in document currency) that is included in the amount that has to be payed (parameter dPayDocC).
eCircCheque
[in] A value of the 'eCircCheque' enumeration.
bGlobalize
[in] True if this payment can be globalized with other payments for the same beneficiary, otherwise false.
bsGroup
[in] The code of the globalized payment where this one is part of.
bsCommunication
[in] The message for the beneficiary. If the message starts with '+++' it is assumed to be a TSM number and must comply with the TSM number validation. If a message consists of exactly 12 digits and numerically validates as a TSM number, it will also be formatted and further processed as a TSM number.
bsBankAccount
[in] The bank account you want to explicitly assign to the beneficiary, otherwise blank (bank account of the supplicer card is used).
bsPayMethod
[in] The payment method used in case of foreign payments (foreign currency or only foreign banks). The valid string values for this parameter can be found in the purchase document dialog of your Venice installation.
bsCosts
[in] The costs that are intrinsic to foreign payments (foreign currency or only foreign banks). The valid string values for this parameter can be found in the purchase document dialog of your Venice installation.
bsTransactionCode
[in] The transaction code used in case of foreign payments (foreign currency or only foreign banks). The valid string values for this parameter can be found in the purchase document dialog of your Venice installation.
bsJustification
[in] The justification for the given transaction code (parameter bsTransactionCode) in case of foreign payments (foreign currency or only foreign banks).
 
See Also
CreatePurch
Handling accounting documents using the SDK
PrepareDocument
WriteDocument
GetPayInfo
 
Samples
 
C++
 
// Set the payment info of the current document
pPurch->PrepareDocument (paUpdate);

pPurch->SetPayInfo (pPurch->pOpenDocC.dblVal, 0.0, ccNone, VARIANT_FALSE, "", "My payment", "", "", "", "", "");

pPurch->WriteDocument (rmFullReport);

C#
 
// Set the payment info of the current document
oPurch.PrepareDocument (ePrepareAction.paUpdate);

oPurch.SetPayInfo (-(double)oPurch.pOpenDocC, 0.0, eCircCheque.ccNone, false, "", "My payment", "", "", "", "", "");

oPurch.WriteDocument (eReportMode.rmFullReport);

VBS
 
' Set the payment info of the current document
Call oPurch.PrepareDocument(paUpdate)

Call oPurch.SetPayInfo(-oPurch.pOpenDocC, 0.0, ccNone, False, "", "My payment", "", "", "", "", "")

Call oPurch.WriteDocument(rmFullReport)

VB.NET
 
' Set the payment info of the current document
oPurch.PrepareDocument(ePrepareAction.paUpdate)

oPurch.SetPayInfo(-oPurch.pOpenDocC, 0.0, eCircCheque.ccNone, False, "", "My payment", "", "", "", "", "")

oPurch.WriteDocument(eReportMode.rmFullReport)