Sage 100

 View Only
  • 1.  BOI AP Invoice problem

    Posted 11-17-2023 14:28

    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.
    ------------------------------


  • 2.  RE: BOI AP Invoice problem

    Posted 11-17-2023 14:33

    Does this client have any third party add-ons that are being triggered? Like ap automation?

     

     

     

     

    Year-end is quickly approaching.  Be sure to attend our Sage 100 Year-End Tips Live Webcast: View the details

     

     

    David Overholt

    DWD Technology Group, Inc.

    9921 Dupont Circle Drive West, Suite 300 | Fort Wayne, IN 46825

    260.423.2414 main

    260.399.8655 Direct

    800.232.8913 toll free

    sagesupport@dwdtechgroup.com

    www.dwdtechgroup.com

     

    A black background with white text  Description automatically generated

     






  • 3.  RE: BOI AP Invoice problem

    Posted 11-17-2023 16:03

    Wonder if object variable APInvoice is set properly?



    ------------------------------
    Lee Graham
    Friendly Systems, Inc.
    ------------------------------