It may be just a coincidence, but problematic item history had a negative qty for some day, e.g., stock movement "from the future" was in August, but item received into the stock in September.
Hi, Paul.
Sounds like you're talking about REST API. And that your are overwriting data with older values if B managed to read record before A finished to update it. Classic conflict resolution ...