Hi Paulo,
In your first case, the PO will be closed as the delivery completed indicator will be set. For your second case, the PO will not be closed automatically as the delivery completion indicator will not be set. you will need to manually set it in order to close the PO
Regards,