On-Hand Quantity fails to satisfy reservation quantity
I'm trying to reserve quantity against sales order lines using OE_ORDER_PUB.process_ORDER API, I'm doing an account alias receipt before calling the reservation api and all this is under one aut0nomous transaction. Now even though account alias receipt succeeds and OHQ gets increased my reservation api fails with error: OHQ fails to satisfy reservation quantity.
The issue is coming only for orders which have same items in two different order lines , in this case the line 1 gets processed and reservation is created but line 2 fails with mentioned error.
Please suggest possible causes for this.
I've verified the ordered quantity and reservation quantity getting passed to API are correct and since on failure we need to rollback OHQ, we can not commit after OHQ receipt.