Acumatica Web API:阅读 SO303000.InvoiceSummary.Type 仅字段 returns "Invoice"
Acumatica Web API: Reading SO303000.InvoiceSummary.Type Field only returns "Invoice"
使用 SOAP 服务 API,我正在尝试读取字段 SO303000.InvoiceSummary.Type 以确定发票的类型是发票、借项通知单、贷项通知单、现金 Return 还是现金销售。我制作了每种类型的多个发票,然后使用下面代码的类似版本调用所有 ReferenceNbr 及其类型的基本读取。我能够检索所有发票(所有类型),但是每张发票的类型字段始终填充为 "Invoice",这与 SO303000 屏幕不同。我读错了 Field 还是其他什么东西?谢谢!
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);
}
此屏幕有两个关键字段:类型和编号。由于您只在服务命令中指定 EveryReferenceNbr
,而没有在命令中设置特定类型,系统只会 return 您使用默认类型,即发票。如果你想获得每种类型的每个数字,你还必须添加 SO303000.InvoiceSummary.ServiceCommands.EveryType
作为你的第一个命令,在 SO303000.InvoiceSummary.ServiceCommands.EveryReferenceNbr
之前
使用 SOAP 服务 API,我正在尝试读取字段 SO303000.InvoiceSummary.Type 以确定发票的类型是发票、借项通知单、贷项通知单、现金 Return 还是现金销售。我制作了每种类型的多个发票,然后使用下面代码的类似版本调用所有 ReferenceNbr 及其类型的基本读取。我能够检索所有发票(所有类型),但是每张发票的类型字段始终填充为 "Invoice",这与 SO303000 屏幕不同。我读错了 Field 还是其他什么东西?谢谢!
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);
}
此屏幕有两个关键字段:类型和编号。由于您只在服务命令中指定 EveryReferenceNbr
,而没有在命令中设置特定类型,系统只会 return 您使用默认类型,即发票。如果你想获得每种类型的每个数字,你还必须添加 SO303000.InvoiceSummary.ServiceCommands.EveryType
作为你的第一个命令,在 SO303000.InvoiceSummary.ServiceCommands.EveryReferenceNbr