<?php
// чиним отчеты, меняем использование функции form_local_number, @param decimals = '2', а не '/2' (пример)
$result = run_query("SELECT id, code FROM " . $config['table_prefix'] . "reports");
while ($row = sql_fetch_assoc($result)) {
    $new_row_code = str_replace(
        array(
            'form_local_number($row[\'summa\'], \'/2\');',
            'form_local_number($row2[\'summa\'], \'/2\');',
            'form_local_number($sumSmonth, \'/2\');',
            'form_local_number($sumSmonth2, \'/2\');',
            'form_local_number($sumSall, \'/2\');',
            'form_local_number($sumSchoice, \'/2\');',
            'form_local_number($data[\'income\'],\'/2\');',
            'form_local_number($data[\'expense\'],\'/2\');',
            'form_local_number($v[\'all\'],\'/2\');',
            'form_local_number($v[\'sum_all\'],\'/2\');',
            'form_local_number($v[\'sum_income\'],\'/2\');',
            'form_local_number($v[\'sum_expense\'],\'/2\');'
        ),
        array(
            'form_local_number($row[\'summa\'], \'2\');',
            'form_local_number($row2[\'summa\'], \'2\');',
            'form_local_number($sumSmonth, \'2\');',
            'form_local_number($sumSmonth2, \'2\');',
            'form_local_number($sumSall, \'2\');',
            'form_local_number($sumSchoice, \'2\');',
            'form_local_number($data[\'income\'],\'2\');',
            'form_local_number($data[\'expense\'],\'2\');',
            'form_local_number($v[\'all\'],\'2\');',
            'form_local_number($v[\'sum_all\'],\'2\');',
            'form_local_number($v[\'sum_income\'],\'2\');',
            'form_local_number($v[\'sum_expense\'],\'2\');'
        ),
        $row['code']);
    run_query("UPDATE " . $config['table_prefix'] . "reports SET code='" . mysqli_real_escape_string($sql_global_link, $new_row_code) . "' WHERE id='" . $row['id'] . "' LIMIT 1");
}

?>