One of the Spanish VAT Law to be according to the VAT Directive when introduces a minimum limit to the taxable base consisting in the good production cost or the cost of the rendering of the service for the case that the consideration is in kind and the value that is attributed to the same by unrelated parties is lower.
Source Ivaconsulta