| GetItemPrice Method | |
| See Also |
- CardCode
- Specifies the business partner code.
- ItemCode
- Specifies the item code.
- amount
- Specifies transaction quantity (number of units).
- Date
- Specifies transaction date.
Returns a Recordset object that contains the item price for specified business partner and item, based on the amount and transaction date.
- CardCode
- Specifies the business partner code.
- ItemCode
- Specifies the item code.
- amount
- Specifies transaction quantity (number of units).
- Date
- Specifies transaction date.
A Recordset object that contains two fields: Price and Currency.
The system returns 0, if a price is not found for the specified business partner and item.
Exceptions
-2000 The connection with database has been disconnected.
The item price consists on the following four factors: business partner, item, transaction amount, and transaction date.
If the currency of the returned price is not the same currency as you use, use the GetCurrencyRate method to convert between currencies.