Picking up these threads
Need a way to handle over-production/ under-production.
- Display a field allow_over_production and if selected, ignore max production qty.
- Add a field in Production Order Item - loss_qty (any other name ?) that will track loss qty.
- If mark as loss is selected, then make Stock Entry for raw material for the full quantity, for Finished Goods for the actual quantity produced
- Use produced_qty + loss_qty in code where ever produced qty is being used currently.
I think is a better approach, where the existing process is not changed and Production Qty difference is handled separately through Stock Entry.