Scrap item is not added to Stock Entry Manufacture

Hi,

My backflush setup is to use material transferred for manufacture

When finishing a production order with Scrap Item, the scrap item is not added to the stock entry.

I check the code, and seems it is not adding the scrap item for such setup. I have raised the same issue in github