Hi RemcoD ,
Thanks for your post.
That would only be possible with custom development. I'm sorry.
Anyway, please, note that searching for the batch numbers of the inventories included in the RAW materials added to an order's item could be resource-intensive and time-consuming (depending on your configuration) and cause the query to fail in some cases.
Best Regards,
José Andrés