Hello,
I'm inserting invoices for a client and they have requested that they all go into the same batch.
I can't figure out how to create a new batch and keep using it. The best I can come up with is creating a new batch for each invoice.
I pull the invoice number from an earlier event.
retVal = oSOInvoice.nSetKeyValue("InvoiceNo$", "<xsl:value-of select="$InvoiceNo"/>")
If oSOInvoice.nBatchEnabled = 1 Then
sBatchNo = ""
retVal = oSOInvoice.nSelectBatch(sBatchNo)
End If
retVal = oSOInvoice.nSetKey("<xsl:value-of select="$InvoiceNo"/>")
I just don't know how to select an existing batch for the day.