I have a store with multiple locations. After placing an order, inventory is reduced from Location A but in orders Location B is shown as a location. Now location B holds no inventory of the product in order. Location B is neither the default location nor is it above in priority than Location A. What is the logic behind shopify picking Location B?
I am using REST admin API to place an order and graphQL API to adjust inventory