Venice
Custm::GetExpired
 
Gets the expired amounts of this Customer.
 
DOUBLE GetExpired (
    LONG lCstNum,
    VARIANT* pvPeriod0,
    VARIANT* pvPeriod1,
    VARIANT* pvPeriod2,
    VARIANT* pvPeriod3,
    VARIANT* pvPeriod4,
    VARIANT* pvRemLevel
)
 
Parameters
lCstNum
[in] The number of the Customer of which you want to retrieve the expired amounts. If 0 is supplied, the number of the current Customer is used.
pvPeriod0
[out] Returns a VARIANT, subtype DOUBLE, containing the total amount of all unpaid sales documents, which are not yet expired.
pvPeriod1
[out] Returns a VARIANT, subtype DOUBLE, containing the total amount of all unpaid sales documents, which are expired within the first expiry date period.
pvPeriod2
[out] Returns a VARIANT, subtype DOUBLE, containing the total amount of all unpaid sales documents, which are expired within the second expiry date period.
pvPeriod3
[out] Returns a VARIANT, subtype DOUBLE, containing the total amount of all unpaid sales documents, which are expired within the third expiry date period.
pvPeriod4
[out] Returns a VARIANT, subtype DOUBLE, containing the total amount of all unpaid sales documents, which are expired within the fourth expiry date period.
pvRemLevel
[out] Returns a VARIANT, subtype BYTE (unsigned char), containing the reminder level of this Customer.
 
Return value
A DOUBLE containing the balance for the last financial year 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
CreateCustm
SeekByCstNum
 
Samples
 
C++
 
// Get the balance (all financial years), the expired amounts (last financial year) and the reminder level of the Customer with number = 25/0
if (pCustm->SeekByCstNum (smEqual, 25, 0))
{
    double    lfBalance;
    VARIANT    vExp1, vExp2, vExp3, vExp4, vExp5, vRemLevel;

    lfBalance = pCustm->GetExpired (0, &vExp1, &vExp2, &vExp3, &vExp4, &vExp5, &vRemLevel);
}

C#
 
// Get the balance (all financial years), the expired amounts (last financial year) and the reminder level of the Customer with number = 25/0
if (oCustm.SeekByCstNum (eSeekMode.smEqual, 25, 0))
{
    double    lfBalance;
    object    oExp1, oExp2, oExp3, oExp4, oExp5, oRemLevel;

    lfBalance = oCustm.GetExpired (0, out oExp1, out oExp2, out oExp3, out oExp4, out oExp5, out oRemLevel);
}

VBS
 
' Get the balance (all financial years), the expired amounts (last financial year) and the reminder level of the Customer with number = 25/0
If oCustm.SeekByCstNum(smEqual, 25, 0) Then
    Dim lfBalance
    Dim oExp1, oExp2, oExp3, oExp4, oExp5, oRemLevel

    lfBalance = oCustm.GetExpired(0, oExp1, oExp2, oExp3, oExp4, oExp5, oRemLevel)
End If

VB.NET
 
' Get the balance (all financial years), the expired amounts (last financial year) and the reminder level of the Customer with number = 25/0
If oCustm.SeekByCstNum(eSeekMode.smEqual, 25, 0) Then
    Dim lfBalance As Double
    Dim oExp1, oExp2, oExp3, oExp4, oExp5, oRemLevel As Object

    lfBalance = oCustm.GetExpired(0, oExp1, oExp2, oExp3, oExp4, oExp5, oRemLevel)
End If