【问题标题】:Acumatica Web API: Reading SO303000.InvoiceSummary.Type Field only returns "Invoice"Acumatica Web API:读取 SO303000.InvoiceSummary.Type 字段仅返回“发票”
【发布时间】:2016-07-26 00:29:43
【问题描述】:

使用 SOAP 服务 API,我尝试读取字段 SO303000.InvoiceSummary.Type 以确定发票的类型是否为发票、借记通知单、贷记通知单、现金返还或现金销售。我已经为每种类型制作了多个发票,然后使用下面代码的类似版本调用了所有 ReferenceNbrs 及其类型的基本读取。我能够检索所有发票(所有类型),但是每个发票的类型字段始终填充为与 SO303000 屏幕不同的“发票”。我读错了字段还是别的什么?谢谢!

public void GetAllInvoiceTypes()
{
    SO303000Content SO303000 = context.SO303000GetSchema();
    context.SO303000Clear();

    var fields = SO303000.InvoiceSummary;

    List<Command> commands = new List<Command>();
    commands.Add(SO303000.InvoiceSummary.ServiceCommands.EveryReferenceNbr);
    commands.Add(SO303000.InvoiceSummary.ReferenceNbr);
    commands.Add(SO303000.InvoiceSummary.Type);

    String[][] SO303000content = context.SO303000Export(commands.ToArray(), new Filter[] { }, 0, true, true);
}

【问题讨论】:

    标签: acumatica


    【解决方案1】:

    此屏幕有两个关键字段:类型和编号。由于您只是在服务命令中指定EveryReferenceNbr,而不是在命令中设置特定类型,因此系统只会返回默认类型,即发票。如果你想得到每种类型的每一个数字,你还必须在SO303000.InvoiceSummary.ServiceCommands.EveryReferenceNbr之前添加SO303000.InvoiceSummary.ServiceCommands.EveryType作为你的第一个命令

    【讨论】:

      猜你喜欢
      • 2014-10-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-09-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多