It is allowed to delete not OKed sales order which is connected to the Purchase order. After deleting the sales order we have orphan purchase order. I'll report a bug.
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 ...