|
Seeks a Commercial Sales Agreement by its article info. |
|
|
VARIANT_BOOL SeekByArtcl ( enum eSeekMode eSeekMode, enum eComAgType eComAgType, VARIANT_BOOL bPriority, enum eArtKind eArtKind, BSTR bsArtNum, BSTR bsArtCat, enum eCstKind eCstKind, LONG lCstNum, BSTR bsCstCat, DOUBLE dQuantity ) |
|
|
Key information | | | Key segment information | Segment Name | Type | Order | Collation | pComAgType | BYTE | Ascending | - | pPriority | VARIANT_BOOL | Descending | - | pArtKind | BYTE | Ascending | - | pArtNum | BSTR | Ascending | Hierarchy | pArtCat | BSTR | Ascending | Case insensitive | pCstKind | BYTE | Ascending | - | pCstNum | LONG (unsigned) | Ascending | - | pCstCat | BSTR | Ascending | Case insensitive | pQuantity | DOUBLE | Ascending | - |
| | Parameters | eSeekMode | [in] A value of the 'eSeekMode' enumeration. | eComAgType | [in] A value of the 'eComAgType' enumeration. | bPriority | [in] Does the commercial sales agreement you want to seek have priority? |
|
Remarks
|
|
Commercial sales agreements that have no priority are unique records. In this case you can use the value smEqual for the parameter eSeekMode.
Priority records can occur more than once for the same data, but for different periods. In this case it is not safe to use the value smEqual for the parameter eSeekMode. |
|
eArtKind | [in] A value of the 'eArtKind' enumeration. | bsArtNum | [in] The article number of the commercial sales agreement you want to seek. | bsArtCat | [in] The article category of the commercial sales agreement you want to seek. | eCstKind | [in] A value of the 'eCstKind' enumeration. | lCstNum | [in] The customer number of the commercial sales agreement you want to seek. | bsCstCat | [in] The customer category of the commercial sales agreement you want to seek. | dQuantity | [in] The quantity for which you want to seek a commercial sales agreement. | | Return value |
True if the record with the given properties was found, otherwise false. |
|
See Also |
|
|
|
Samples |
|
|
C++ |
|
// Find the non-prior commercial sales agreement of type discount for 100 pieces of the article with number 'ART_001'.
if (pComAs->SeekByArtcl (smEqual, caDiscount, VARIANT_FALSE, akNum, "ART_001", "", ckAll, 0, "", 100.0))
// Process record data
|
|
|
C# |
|
// Find the non-prior commercial sales agreement of type discount for 100 pieces of the article with number 'ART_001'.
if (oComAs.SeekByArtcl (eSeekMode.smEqual, eComAgType.caDiscount, false, eArtKind.akNum, "ART_001", "", eCstKind.ckAll, 0, "", 100.0))
// Process record data
|
|
|
VBS |
|
' Find the non-prior commercial sales agreement of type discount for 100 pieces of the article with number 'ART_001'.
If oComAs.SeekByArtcl(smEqual, caDiscount, False, akNum, "ART_001", "", ckAll, 0, "", 100.0) Then
' Process record data
End If
|
|
|
VB.NET |
|
' Find the non-prior commercial sales agreement of type discount for 100 pieces of the article with number 'ART_001'.
If oComAs.SeekByArtcl(eSeekMode.smEqual, eComAgType.caDiscount, False, eArtKind.akNum, "ART_001", "", eCstKind.ckAll, 0, "", 100.0) Then
' Process record data
End If
|
|