Dossier::GetClosedDate (Interface: Dossier)
 
Gets the date of the last day of the last closed period for the given type of declaration.
 
DATE GetClosedDate (
    enum eDeclType eDeclType
)
 
Parameters
eDeclType
[in] A value of the 'eDeclType' enumeration.
 
Return value
A DATE containing the date of the last day of the last closed/deposed period for the given type of declaration.
 
Remarks
When the option related to the given type of declaration is not active in the dossier, this method returns the 0-date for COM (i.e. 30/12/1899).

The following options are needed:

Type of declaration (eDeclType)   Option(s)
dtVATDeclaration   Accounting
dtIntraCommunity   Accounting
dtCustomerStatem   Accounting
dtHonorariumCard   Accounting, Fiduciary
dtAnnualAccounts   Annual Accounts
 
See Also
CreateDossierContext
 
Samples
 
C++
 
COleDateTime dtClosedDate;

// Get the date of the last day of the last closed period for the VAT declaration.
dtClosedDate = pDossier->GetClosedDate (dtVATDeclaration);

// Get the date of the last day of the last closed period for the intra-community statement.
dtClosedDate = pDossier->GetClosedDate (dtIntraCommunity);

// Get the date of the last day of the last closed period for the customer statement.
dtClosedDate = pDossier->GetClosedDate (dtCustomerStatem);

// Get the date of the last day of the last closed period for the honorarium cards.
dtClosedDate = pDossier->GetClosedDate (dtHonorariumCard);

// Get the date of the last day of the last deposed annual accounts.
dtClosedDate = pDossier->GetClosedDate (dtAnnualAccounts);

C#
 
DateTime dtClosedDate;

// Get the date of the last day of the last closed period for the VAT declaration.
dtClosedDate = oDossier.GetClosedDate (eDeclType.dtVATDeclaration);

// Get the date of the last day of the last closed period for the intra-community statement.
dtClosedDate = oDossier.GetClosedDate (eDeclType.dtIntraCommunity);

// Get the date of the last day of the last closed period for the customer statement.
dtClosedDate = oDossier.GetClosedDate (eDeclType.dtCustomerStatem);

// Get the date of the last day of the last closed period for the honorarium cards.
dtClosedDate = oDossier.GetClosedDate (eDeclType.dtHonorariumCard);

// Get the date of the last day of the last deposed annual accounts.
dtClosedDate = oDossier.GetClosedDate (eDeclType.dtAnnualAccounts);

VBS
 
Dim dtClosedDate

' Get the date of the last day of the last closed period for the VAT declaration.
dtClosedDate = oDossier.GetClosedDate(dtVATDeclaration)

' Get the date of the last day of the last closed period for the intra-community statement.
dtClosedDate = oDossier.GetClosedDate(dtIntraCommunity)

' Get the date of the last day of the last closed period for the customer statement.
dtClosedDate = oDossier.GetClosedDate(dtCustomerStatem)

' Get the date of the last day of the last closed period for the honorarium cards.
dtClosedDate = oDossier.GetClosedDate(dtHonorariumCard)

' Get the date of the last day of the last deposed annual accounts.
dtClosedDate = oDossier.GetClosedDate(dtAnnualAccounts)

VB.NET
 
Dim dtClosedDate As Date

' Get the date of the last day of the last closed period for the VAT declaration.
dtClosedDate = oDossier.GetClosedDate(eDeclType.dtVATDeclaration)

' Get the date of the last day of the last closed period for the intra-community statement.
dtClosedDate = oDossier.GetClosedDate(eDeclType.dtIntraCommunity)

' Get the date of the last day of the last closed period for the customer statement.
dtClosedDate = oDossier.GetClosedDate(eDeclType.dtCustomerStatem)

' Get the date of the last day of the last closed period for the honorarium cards.
dtClosedDate = oDossier.GetClosedDate(eDeclType.dtHonorariumCard)

' Get the date of the last day of the last deposed annual accounts.
dtClosedDate = oDossier.GetClosedDate(eDeclType.dtAnnualAccounts)