Generalization of Prigogine’s theorem for the case of full differential of entropy