Material receipt confirmation fails with Document Type error. To reproduce:
1. Create new Material Receipt set type Material Receipt with Confirmation.
2. Enter product line and quantity and Complete
3. Click related documents and select Confirmation
4. Complete Confirmation
Fix attached
Good catch , to reproduce the issue before step 4 we needed to fill a scrapped qty.