Section 255(3) in The Code of Criminal Procedure, 1973
(3)A Magistrate may, under Section 252 or Section 255, convict the accused of any offence triable under this Chapter, which from the facts admitted or proved he appears to have committed, whatever may be the nature of the complaint or summons, if the Magistrate is satisfied that the accused would not be prejudiced thereby.