Changed logic for the automatic employee work creation