| |
| Gets the account balance of this Customer. |
| |
 |
DOUBLE GetBalance ( LONG lCstNum ) |
|
| |
| Parameters | | lCstNum | | [in] The number of the Customer of which you want to retrieve the balance. If 0 is supplied, the number of the current Customer is used. | | | | Return value |
| A DOUBLE containing the current balance of the given Customer. | | | | Remarks |
 | The option 'Accounting' is required to use this method. |
 | This method throws an exception if no financial years are present in the dossier. |
|
| |
| See Also |
|
|
|
| |
| Samples |
| |
 |
C++ |
| |
// Get the balance of the customer with number = 25/0
if (pCustm->SeekByCstNum (smEqual, 25, 0))
double lfBalance = pCustm->GetBalance (0);
|
|
 |
C# |
| |
// Get the balance of the customer with number = 25/0
if (oCustm.SeekByCstNum (eSeekMode.smEqual, 25, 0))
double lfBalance = oCustm.GetBalance (0);
|
|
 |
VBS |
| |
' Get the balance of the customer with number = 25/0
If oCustm.SeekByCstNum(smEqual, 25, 0) Then
Dim lfBalance
lfBalance = oCustm.GetBalance (0)
End If
|
|
 |
VB.NET |
| |
' Get the balance of the customer with number = 25/0
If oCustm.SeekByCstNum(eSeekMode.smEqual, 25, 0) Then
Dim lfBalance As Double
lfBalance = oCustm.GetBalance (0)
End If
|
|