56. The court may confirm, amend or quash a decision referred to it and render the decision that should have been rendered.
The judgment must be rendered in writing and contain, in addition to the conclusions, a statement of the reasons on which it is based.