|
Gets the current Stock data for an article in a warehouse. |
|
|
VARIANT_BOOL GetStockWrh ( BSTR bsArtNum, BSTR bsWarehouse, 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. | 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' in warehouse 'Wrh_1', using its stock article
if (pCurStock->GetStockWrh ("Art_001", "Wrh_1", VARIANT_TRUE))
// Process data
|
|
|
C# |
|
// Get the current stock data for the article with number 'Art_001' in warehouse 'Wrh_1', using its stock article
if (oCurStock.GetStockWrh ("Art_001", "Wrh_1", true))
// Process data
|
|
|
VBS |
|
' Get the current stock data for the article with number 'Art_001' in warehouse 'Wrh_1', using its stock article
If oCurStock.GetStockWrh("Art_001", "Wrh_1", True) Then
' Process data
End If
|
|
|
VB.NET |
|
' Get the current stock data for the article with number 'Art_001' in warehouse 'Wrh_1', using its stock article
If oCurStock.GetStockWrh("Art_001", "Wrh_1", True) Then
' Process data
End If
|
|