Maintain current pricing in FIFO layers when buying parts directly to a Job or Sales Order

We are using the FIFO costing method for inventory. We do this to maintain current costs for items that we keep in stock. This means that we have to buy all parts to stock and then issue them to the needed Jobs or Sales Orders.

Is there a way to purchase items directly to a Job or Sales Order and still maintain current prices in inventory?