-
I have
OrderQty,totalConsumedQty, andMaximumOrderQty. -
Orders are being placed in parallel.
-
Each order reads the current
totalConsumedQty, adds itsOrderQty, and checks if it exceedsMaximumOrderQty. -
When multiple orders are placed at exactly the same time, they all see the same original value of
totalConsumedQty, and each thinks it’s safe to place the order. -
Result:
totalConsumedQtyis exceeded because updates are not aware of each other. -
Updating
totalConsumedQtyis happens while Saving, It is required
Question
Multiple Parallel (concurrent) operations
Login to the community
No account yet? Create an account
Social Login
Login with your Acumatica accountEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.