I have a RESTlet api which is responsible for creating Invoices. All the Invoices that are being created through the RESTlet must have "A/R-Due from Buyers" which is an "Accounts Receivable" type of Account. This Account information is hardcoded in the script and has been working fine for years. But recently we have noticed the Account value to be "A/R Company Store" for a few Invoices, which is wrong. It seems like the Account information is being sourced from somewhere. I'm having a hard time to find the source of the Account value since it happens only for a few records.
Please let me know if anyone knows how the Account information is being populated in Invoices. I'd also be grateful if you could guide me to resolve this issue by setting up the Accounts to be unique across all the Invoices. Thanks in advance.