/**
  * This function is called for each data row to allow processing of the
  * amount value.
  *
  * @param object $values Contains object with all the values of record.
  * @return $string Return amount including the currency symbol
  */
 function col_amount($values)
 {
     $t = new MoodecTransaction((int) $values->id);
     return local_moodec_get_currency_symbol(get_config('local_moodec', 'currency')) . number_format($t->get_cost(), 2, '.', ',');
 }