IService..::..GetPrice Method

Gets a price for a product.

Namespace:  JiwaFinancials.Jiwa.JiwaWebService.WCF
Assembly:  JiwaWebService (in JiwaWebService.exe)

Syntax


[OperationContractAttribute]
[WebGetAttribute]
decimal GetPrice(
	string InventoryID,
	string DebtorID,
	string IN_LogicalID,
	DateTime QueryDate,
	decimal Quantity
)
<OperationContractAttribute> _
<WebGetAttribute> _
Function GetPrice ( _
	InventoryID As String, _
	DebtorID As String, _
	IN_LogicalID As String, _
	QueryDate As DateTime, _
	Quantity As Decimal _
) As Decimal
[OperationContractAttribute]
[WebGetAttribute]
Decimal^ GetPrice(
	String^ InventoryID, 
	String^ DebtorID, 
	String^ IN_LogicalID, 
	DateTime^ QueryDate, 
	Decimal^ Quantity
)

Parameters

InventoryID
Type: String
The InventoryID (product) to get the price for
DebtorID
Type: String
The DebtorID (customer) we are using
IN_LogicalID
Type: String
The Logical Warehouse ID we are using
QueryDate
Type: DateTime
The date the of sale / quote
Quantity
Type: Decimal
The quantity of inventory to be used in the order / quote

Return Value

System.Decimal The price to sell /quote at

Examples


Get the selling price of an item, given the inventoryid, debtorid, warehouseid, date and quantity.
VB.NET
Dim binding As System.ServiceModel.WSHttpBinding  = New System.ServiceModel.WSHttpBinding()
  binding.MaxReceivedMessageSize = 50000000
  binding.ReaderQuotas.MaxArrayLength = 50000000
  binding.ReaderQuotas.MaxStringContentLength = 50000000
  Dim jiwaService As JiwaWebServiceReference.ServiceClient = New JiwaWebServiceReference.ServiceClient(binding, New ServiceModel.EndpointAddress("http://localhost:8001/jiwa7/services/7.0"))
  jiwaService.Logon("Admin", "password")
  Dim Price As Decimal = jiwaService.GetPrice("000000000K00000000BQ", "0000000061000000001V", "ZZZZZZZZZZ0000000000", Now, 5)
  jiwaService.Logoff()
  jiwaService.Close()