I'm developing a software that would allow users to add orders rapidly. I call the taSopHdrIvcInsert stored procedure to add a record in the SOP10100 table.
Testing my code, I realized that the stored procedure generates a record with a NOTEINDX value that already exists. An old note is shown on my newly added order. How is that value assigned to the new row in the stored procedure?
I thought that it was because I was using a test company, but ran a query against the production database and there are multiple duplicate NOTEINDX (110 000 duplicates), both in SOP10100 and SOP 30200 table. We currently have comments/notes that are shown on multiple orders/invoices. How is that possible?