我试图从web服务API中获取折扣代码,即会有一个函数调用来告诉我要应用哪个折扣代码吗?
否则,我试图检索折扣代码,但它们可以是按项目或项目,价格,类别和客户等,这使得代码比预期的长。
希望API中有一个"GetBestDiscount“工具,可以帮助我吗?
谢谢你,G
发布于 2016-05-18 22:06:34
此时,对于任何Web服务调用,Acumatica折扣引擎都被停用。因此,在没有折扣的情况下输入订单行将不会填充折扣代码。
然而,在Acumatica,有专门为客户检索商品价格的GetSalesPrice.zip定制包(附加到基于I200屏幕的WebServices5.3和基于I210合同的WebServices5.3源代码)。
基于屏幕的API的示例调用:
Content getSalesPriceSchema = context.GetSchema();
var commands = new Command[]
{
new Value
{
Value = customer,
LinkedCommand =getSalesPriceSchema.RequiredInputParameters.Customer
},
new Value
{
Value = inventoryID,
LinkedCommand =getSalesPriceSchema.RequiredInputParameters.InventoryID
},
getSalesPriceSchema.OutputPrice.Price
};
Content price = context.Submit(commands)[0];基于合同的API的示例调用:
GetSalesPriceInquiry priceToBeGet = new GetSalesPriceInquiry
{
Customer = new StringValue { Value = customer },
InventoryID = new StringValue { Value = inventoryID }
};
GetSalesPriceInquiry stockItemPrice = (GetSalesPriceInquiry)soapClient.Put(priceToBeGet);发布于 2016-05-19 08:45:58
我尝试通过API订单输入屏幕创建一个临时销售订单行,而没有将其保存为Gabriel建议。我可以收回规定的价格,没有问题,但折扣百分比和折扣代码不返回。返回的折扣百分比为零,折扣代码为空。
这是因为Acumatica折扣引擎对任何Web服务调用都是禁用的。
对于任何Web服务调用,Acumatica折扣引擎被禁用的原因有什么?
发布于 2016-05-17 08:10:21
没有这样的API,但是您可以使用sales order entry screen API创建临时销售订单,在其中添加一行,并在不保存订单的情况下检索设定的价格或折扣。这将是最准确的信息,因为折扣和价格也可以取决于日期,数量和其他产品在同一时间被订购。
https://stackoverflow.com/questions/37265806
复制相似问题