【问题标题】:How to pass or condition in Web Service Endpoints - Acumatica如何在 Web 服务端点中通过或条件 - Acumatica
【发布时间】:2020-02-14 23:38:11
【问题描述】:

我需要根据订单类型条件来拉订单。我可以通过传递一种订单类型来获取数据,但是我需要获取两种订单类型的订单,找不到Or条件实施。

这里是代码。

private static SalesOrder SOStokItem(DateTimeSearch whereCondition, StringSearch Condition, int rowCount)
    {
        SalesOrder item = new SalesOrder()
        {
            RowNumber = new LongSearch { Condition = LongCondition.IsLessThan, Value = rowCount },
            ReturnBehavior = ReturnBehavior.OnlySpecified,
            OrderType = new StringReturn(),
            OrderNbr = new StringReturn(),
        };
        if (whereCondition != null)
            item.LastModified = whereCondition;
         if (Condition != null)
        {
             //item.OrderType = new StringSearch() { Condition = StringCondition.or, Value = "RC" };
            //item.OrderType = new StringSearch() { Value = "RW" };
        }
        return item;
    }

【问题讨论】:

    标签: acumatica


    【解决方案1】:

    SOAP API 不包括字符串字段上的or 过滤条件。 您需要发出两个 SOAP 请求来过滤带有or 条件的销售订单。

    【讨论】:

      猜你喜欢
      • 2018-08-20
      • 2015-07-30
      • 2012-06-20
      • 2019-07-06
      • 1970-01-01
      • 2014-01-18
      • 2018-02-05
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多