SInvce::NeedStkDistrib (Interface: SInvce)
 
Should this detail be distributed?
 
VARIANT_BOOL NeedStkDistrib (
    SHORT sDetIndex
)
 
Parameters
sDetIndex
[in] The index of the detail where the distribution belongs to, starting from 0.
 
Return value
True if for the given detail distributions are required, otherwise false.
 
See Also
CreateSInvce
Handling invoicing documents using the SDK
PrepareDocument
CancelDocument
 
Samples
 
C++
 
// Check if the first detail of the current document needs to be distributed
pSInvce->PrepareDocument (paView);

if (pSInvce->NeedStkDistrib (0))
{
    // Process data
}

pSInvce->CancelDocument ();

C#
 
// Check if the first detail of the current document needs to be distributed
oSInvce.PrepareDocument (ePrepareAction.paView);

if (oSInvce.NeedStkDistrib (0))
{
    // Process data
}

oSInvce.CancelDocument ();

VBS
 
' Check if the first detail of the current document needs to be distributed
Call oSInvce.PrepareDocument(paView)

If oSInvce.NeedStkDistrib(0) Then
    ' Process data
End If

Call oSInvce.CancelDocument()

VB.NET
 
' Check if the first detail of the current document needs to be distributed
oSInvce.PrepareDocument(ePrepareAction.paView)

If oSInvce.NeedStkDistrib(0) Then
    ' Process data
End If

oSInvce.CancelDocument()