IService..::..GetPriceSimple Method

Gets a price for a product, using simplified parameters. Assumes warehouse is the warehouse the current user is logged into.

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

Syntax


[OperationContractAttribute]
[WebGetAttribute]
decimal GetPriceSimple(
	string PartNo,
	string DebtorAccountNo,
	DateTime QueryDate,
	decimal Quantity
)
<OperationContractAttribute> _
<WebGetAttribute> _
Function GetPriceSimple ( _
	PartNo As String, _
	DebtorAccountNo As String, _
	QueryDate As DateTime, _
	Quantity As Decimal _
) As Decimal
[OperationContractAttribute]
[WebGetAttribute]
Decimal^ GetPriceSimple(
	String^ PartNo, 
	String^ DebtorAccountNo, 
	DateTime^ QueryDate, 
	Decimal^ Quantity
)

Parameters

PartNo
Type: String
The Part No. to get the price for
DebtorAccountNo
Type: String
The Debtor Account No. (customer) 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.GetPriceSimple("1170", "1001", Now, 5)
  jiwaService.Logoff()
  jiwaService.Close()