|
Gets the current Stock data for an article with a serial number on a location in a warehouse. |
|
|
VARIANT_BOOL GetStockSrl ( BSTR bsArtNum, BSTR bsWarehouse, BSTR bsLocation, BSTR bsSerialNum, VARIANT_BOOL bUseStockArticle ) |
|
|
Parameters | bsArtNum | [in] The article number of which you want to know the current stock data. | bsWarehouse | [in] The warehouse where the article of which you want to know the current stock data is stored. | bsLocation | [in] The location where the article of which you want to know the current stock data is stored. | bsSerialNum | [in] The serial number of the article of which you want to know the current stock data. | bUseStockArticle | [in] Should the current stock data of the stock article of the given article be used to fetch the current stock data? | | Return value |
True if the current stock data was retrieved successfully, otherwise false. | | Remarks |
| The option 'Serial numbers' is required to use this method. |
|
|
See Also |
|
|
|
Samples |
|
|
C++ |
|
// Get the current stock data for the article with number 'Art_001' and serial number 'Ser_001' on location 'Loc_01' in warehouse 'Wrh_1', using its stock article
if (pCurStock->GetStockSrl ("Art_001", "Wrh_1", "Loc_01", "Ser_001", VARIANT_TRUE))
// Process data
|
|
|
C# |
|
// Get the current stock data for the article with number 'Art_001' and serial number 'Ser_001' on location 'Loc_01' in warehouse 'Wrh_1', using its stock article
if (oCurStock.GetStockSrl ("Art_001", "Wrh_1", "Loc_01", "Ser_001", true))
// Process data
|
|
|
VBS |
|
' Get the current stock data for the article with number 'Art_001' and serial number 'Ser_001' on location 'Loc_01' in warehouse 'Wrh_1', using its stock article
If oCurStock.GetStockSrl("Art_001", "Wrh_1", "Loc_01", "Ser_001", True) Then
' Process data
End If
|
|
|
VB.NET |
|
' Get the current stock data for the article with number 'Art_001' and serial number 'Ser_001' on location 'Loc_01' in warehouse 'Wrh_1', using its stock article
If oCurStock.GetStockSrl("Art_001", "Wrh_1", "Loc_01", "Ser_001", True) Then
' Process data
End If
|
|