When certain item in not in stock while billing on the billed location, a transfer of the required quantity is made in the background from the Fallback Location


Inventory fall back location


You can set the Fallback Location in Company->Locations->Edit Location