Article 115 [source]

Spanish Criminal Code
English translation

Judges and Courts, when declaring the existence of civil liability, will establish in their resolutions, with reasoning, the bases on which they base the amount of damages and compensation, and may set it in the resolution itself or at the time of its execution.