Transfer back remaining raw materials into Source warehouse in production

In production cycle, sometimes on completion stage…it leaves some remaining qty of materials in WIP warehouse. We cannot determine exact remaining qty until the production is finished…

Currently user has to transfer back remaining materials from WIP to source warehouse…manually via StockEntry - Material Transfer item by item and put remaining qty…

Is there a way that I missed… to do Material transfer that automatically get items from production order and BOM with remaining qty?

I don’t think there is such a feature currently, maybe you can create a feature request of GitHub for this or Customize to get this done