Venice
Sales::GetNumItrDetails
 
Gets the number of Intrastat details.
 
SHORT GetNumItrDetails ()
 
Return value
A SHORT containing the number of Intrastat details of the current document.
 
Remarks
If the option 'Intrastat' is not active in the dossier, this method returns 0.
 
See Also
CreateSales
Handling accounting documents using the SDK
PrepareDocument
CancelDocument
 
Samples
 
C++
 
// Get the number of Intrastat details of the current document
short sNumItrDets;

pSales->PrepareDocument (paView);

sNumItrDets = pSales->GetNumItrDetails ();
    
if (sNumItrDets != 0)
{
    // Process data
}

pSales->CancelDocument ();

C#
 
// Get the number of Intrastat details of the current document
short sNumItrDets;

oSales.PrepareDocument (ePrepareAction.paView);

sNumItrDets = oSales.GetNumItrDetails ();
    
if (sNumItrDets != 0)
{
    // Process data
}

oSales.CancelDocument ();

VBS
 
' Get the number of Intrastat details of the current document
Dim sNumItrDets

Call oSales.PrepareDocument(paView)

sNumItrDets = oSales.GetNumItrDetails()

If sNumItrDets <> 0 Then
    ' Process data
End If

Call oSales.CancelDocument()

VB.NET
 
' Get the number of Intrastat details of the current document
Dim sNumItrDets As Short

oSales.PrepareDocument(ePrepareAction.paView)

sNumItrDets = oSales.GetNumItrDetails()
    
If sNumItrDets <> 0 Then
    ' Process data
End If

oSales.CancelDocument()