Acumatica Web API: Reading SO303000.InvoiceSummary.Type Field only returns "Invoice" -


using soap service api, i'm trying read field so303000.invoicesummary.type determine if invoice of type invoice, debit memo, credit memo, cash return or cash sale. i've made multiple invoices of each type , called basic read referencenbrs , types using similar version of code below. able retrieve of invoices (of types), type field each invoice populated "invoice" different so303000 screen. reading wrong field or else? thanks!

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); } 

this screen has 2 key fields: type , number. since you're specifying everyreferencenbr in service commands, , not setting specific type in commands, system return default type, invoice. if want every number of every type, have add so303000.invoicesummary.servicecommands.everytype first command, before so303000.invoicesummary.servicecommands.everyreferencenbr


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -