Transition from antiferromagnetism to ferromagnetism in the superconducting mixed ternary system (Sm1−xErx)Rh4B4