BOI app entering AP invoices into Sage 100. Exact same code worked at this customer in version 2018 and is working at another customer on 2022.
retval1 = (int)apInvoice.InvokeMethod("nSetValue", "InvoiceAmt", invoiceTotal);
results in a "An exception was thrown by the target of the invocation"
invoiceTotal is valid and correct, and is the total of the lines
Skipping setting the total results an an invoice out of balance error.
I see that APInvoice_bus has a property called "AutoTotalInvoice", but
autototal = apInvoice.GetProperty("AutoTotalInvoice");
returned "unknown name" error.
How do I get or set that property of the object?
Or any ideas on why setting the total doesn't work in this instance?
TIA
Phil
------------------------------
Phil McIntosh
President
Friendly Systems, Inc.
------------------------------