Venice
Suppl::GetBalance
 
Gets the account balance of this Supplier.
 
DOUBLE GetBalance (
    LONG lSupNum
)
 
Parameters
lSupNum
[in] The number of the supplier of which you want to retrieve the balance. If 0 is supplied, the number of the current supplier is used.
 
Return value
A DOUBLE containing the current balance of the given supplier.
 
Remarks
The option 'Accounting' is required to use this method.
 
See Also
CreateSuppl
SeekBySupNum
 
Samples
 
C++
 
// Get the balance of the supplier with number = 125/0
if (pSuppl->SeekBySupNum (smEqual, 125, 0))
    double lfBalance = pSuppl->GetBalance (0);

C#
 
// Get the balance of the supplier with number = 125/0
if (oSuppl.SeekBySupNum (eSeekMode.smEqual, 125, 0))
    double lfBalance = oSuppl.GetBalance (0);

VBS
 
' Get the balance of the supplier with number = 125/0
If oSuppl.SeekBySupNum(smEqual, 125, 0) Then
    Dim lfBalance

    lfBalance = oSuppl.GetBalance (0)
End If

VB.NET
 
' Get the balance of the supplier with number = 125/0
If oSuppl.SeekBySupNum(eSeekMode.smEqual, 125, 0) Then
    Dim lfBalance As Double

    lfBalance = oSuppl.GetBalance (0)
End If