Check all udf:s involved are defined in calculate amount script