Can I Link a Transfer Order with a Purchase Order ?

Dear all,

Let’s say I have 3 order of Item A with quantities (Order1:10, Order2: 20, Order3: 30) shipped to location BLUE. I create a transfer order from BLUE to YELLOW and I want to transfer 10 items from Order2. However the system deducts from BLUE the 10 items of Order1 (We use FIFO). Is there any way to deduct the items from Order2? Can i link a transfer order line with Purchase Order line?

Thank you in advance