We run across the issue sometimes, that a shipment delivery note is not getting printed automatically even though it is set as an optional step in the shipment type:

The issue is then that the main customer order (principal structure) remains in Released status instead of switching to delivered.