(A) Before the imposition of sentence, the defendant may plead guilty to other offenses that the defendant committed within the jurisdiction of the sentencing court.(B) When such pleas are accepted, the court shall sentence the defendant for all the offenses.