We have invoice documents in GP 10.0. Recently, the accounting department has decided that when the incorrect client has been billed, we will return the invoice and create a new one. (Previously, we would issue a credit memo to the wrong client and a debit memo to the new client).
I have been pointed at taSopHdrIvcInsert, but I'm not sure what to do with it or how to save it back. Because I'm never 100% sure what fields GP really needs, I was hoping I could use eConnect or web services to get the document by number, change the SOPTYPE to 4-Return and save it back since it appears everything else should be the same.
I can then invoice the new client and save that into GP using existing processes.
Thanks.