In any judgment or decree for an accounting, the court shall determine the terms and principles upon which such accounting shall be had.