BOI app against 2016.04 standard entering AR invoices. File layout say the KPRIMARY:InvoiceNo & InvoiceType.
Code:
retVal = AR_Invoice_bus.nSetKeyValue(""InvoiceNo$"", sInvoice) 'retval = 1
retVal = AR_Invoice_bus.nSetKeyValue(""InvoiceType$"", sInvType) 'retval = 1
retVal = AR_Invoice_bus.nSetKey() 'retval = 2
AR_Invoice_bus.sLastErrorMsg = ""The Invoice no. - is invalid""
Happens with multiple invoice numbers, all of which work in the UI or via VI.
Is there some other field that needs to be included in the key, despite what the file layout doc says? Or some other problem?