If you are using QM module, it should control via inspection type. it will always post the stock in QI stock, whatever shows in PO stock type.
Else there is a tick option in purchasing view for material master.
Check the tick box is ticked or not.
Regards