287. The judge may, if he grants the appeal on the record, quash, in whole or in part, the judgment rendered in first instance. He shall then render the judgment that should have been rendered in first instance or order a trial before a judge other than the judge who rendered judgment in first instance.