Venice
Suppl::GetExpired
 
Gets the expired amounts of this Supplier.
 
DOUBLE GetExpired (
    LONG lSupNum,
    VARIANT* pvPeriod0,
    VARIANT* pvPeriod1,
    VARIANT* pvPeriod2,
    VARIANT* pvPeriod3,
    VARIANT* pvPeriod4
)
 
Parameters
lSupNum
[in] The number of the supplier of which you want to retrieve the expired amounts. If 0 is supplied, the number of the current supplier is used.
pvPeriod0
[out] Returns a VARIANT, subtype DOUBLE, containing the total amount of all unpaid purchase documents, which are not yet expired.
pvPeriod1
[out] Returns a VARIANT, subtype DOUBLE, containing the total amount of all unpaid purchase documents, which are expired within the first expiry date period.
pvPeriod2
[out] Returns a VARIANT, subtype DOUBLE, containing the total amount of all unpaid purchase documents, which are expired within the second expiry date period.
pvPeriod3
[out] Returns a VARIANT, subtype DOUBLE, containing the total amount of all unpaid purchase documents, which are expired within the third expiry date period.
pvPeriod4
[out] Returns a VARIANT, subtype DOUBLE, containing the total amount of all unpaid purchase documents, which are expired within the fourth expiry date period.
 
Return value
A DOUBLE containing the balance for the last financial year of the given supplier.
 
Remarks
The option 'Accounting' is required to use this method.
The expiry date periods are defined in the general parameters of the option 'Accounting' in your Venice installation.
Only the expired amounts of the last financial year are returned, while the balance is that of all financial years. This explains why the sum of all expired amounts can be different from the balance amount.
 
See Also
CreateSuppl
 
Samples
 
C++
 
// Get the balance (all financial years) and the expired amounts (last financial year) of the supplier with number = 125/0
if (pSuppl->SeekBySupNum (smEqual, 125, 0))
{
    double    lfBalance;
    VARIANT    vExp1, vExp2, vExp3, vExp4, vExp5;

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

C#
 
// Get the balance (all financial years) and the expired amounts (last financial year) of the supplier with number = 125/0
if (oSuppl.SeekBySupNum (eSeekMode.smEqual, 125, 0))
{
    double    lfBalance;
    object    oExp1, oExp2, oExp3, oExp4, oExp5;

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

VBS
 
' Get the balance (all financial years) and the expired amounts (last financial year) of the supplier with number = 125/0
If oSuppl.SeekBySupNum(smEqual, 125, 0) Then
    Dim lfBalance
    Dim oExp1, oExp2, oExp3, oExp4, oExp5

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

VB.NET
 
' Get the balance (all financial years) and the expired amounts (last financial year) of the supplier with number = 125/0
If oSuppl.SeekBySupNum(eSeekMode.smEqual, 125, 0) Then
    Dim lfBalance As Double
    Dim oExp1, oExp2, oExp3, oExp4, oExp5 As Object

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