It depends on the pricing method you use, such as first-in first-out method, monthly average method and so on. Only after the period-end processing of the warehouse is completed will some of them be written into the outbound order. And if the amount has been filled in the outbound order, there will be an option to ask you whether to modify the filled unit price. If Modify is selected, the unit price will be backfilled on the document according to the system's own calculation to cover the original amount. If you don't modify it, use it.
Let me give you a suggestion. You can click "f 1" in the accounting department. In the help, you can see which pricing methods have an amount after bookkeeping, and which pricing methods need bookkeeping+period-end processing to bring out the amount.
I hope I can help you and have a good job.