|
Gets the current Stock data for an article on a location in a warehouse. |
|
|
VARIANT_BOOL GetStockLoc ( BSTR bsArtNum, BSTR bsWarehouse, BSTR bsLocation, 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. | 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 'Stock management' is required to use this method. |
|
|
See Also |
|
|
|
Samples |
|
|
C++ |
|
// Get the current stock data for the article with number 'Art_001' on location 'Loc_01' in warehouse 'Wrh_1', using its stock article
if (pCurStock->GetStockLoc ("Art_001", "Wrh_1", "Loc_01", VARIANT_TRUE))
// Process data
|
|
|
C# |
|
// Get the current stock data for the article with number 'Art_001' on location 'Loc_01' in warehouse 'Wrh_1', using its stock article
if (oCurStock.GetStockLoc ("Art_001", "Wrh_1", "Loc_01", true))
// Process data
|
|
|
VBS |
|
' Get the current stock data for the article with number 'Art_001' on location 'Loc_01' in warehouse 'Wrh_1', using its stock article
If oCurStock.GetStockLoc("Art_001", "Wrh_1", "Loc_01", True) Then
' Process data
End If
|
|
|
VB.NET |
|
' Get the current stock data for the article with number 'Art_001' on location 'Loc_01' in warehouse 'Wrh_1', using its stock article
If oCurStock.GetStockLoc("Art_001", "Wrh_1", "Loc_01", True) Then
' Process data
End If
|
|