Hi PM,
I am sure why the ATP check doesn't prevent the delivery creation in your case. But normally, the delivery will not be created if the GR is not done yet. There will be error about lacking stock.
I would suggest making debug to check why ATP check is not executed when creating delivery.
Best regards,
Hualin