Procedure after judgment of appellate court
299.—(1)  After hearing the appeal and delivering its judgment, the appellate court must certify its judgment, sentence or order to the trial court which recorded or passed the judgment, sentence or order appealed against.
(2)  Where an appeal is not dismissed, the certificate must state the grounds on which the appellate court allowed the appeal or varied the trial court’s decision.
(3)  The trial court must then make orders that conform to the appellate court’s judgment, sentence or order, and, if necessary, amend the record accordingly.
(4)  If the appellate court imposes a sentence of imprisonment on a person who was not so sentenced by the trial court, the appellate court must by warrant commit that person to prison in addition to anything else it is required to do by this section and must certify accordingly to the trial court.