Transaction Tables
Transaction inventory adjustment entries are accessible from the Linked Entries FactBox in the Transaction Register.
Drilling down displays:
In this case there are two records. One to adjust the stock in the sourcing location BLUE, and another to adjust the sales location.
In short, this stock is not coming from S0001 but rather from BLUE. Those entries will adjust the quantity sold not posted until it all falls in place at statement posting.