Bug : verification ne fonctionne pas avec MY_REPORT=N
This commit is contained in:
parent
8c3cbda94f
commit
85f19810ad
2 changed files with 11 additions and 2 deletions
|
|
@ -171,6 +171,7 @@ if (DEBUGNOALYSS == 0) {
|
|||
ini_set('log_errors', 1);
|
||||
ini_set('log_errors_max_len', 0);
|
||||
|
||||
|
||||
}
|
||||
// Erreur
|
||||
define("NOERROR", 0);
|
||||
|
|
|
|||
|
|
@ -108,8 +108,16 @@ echo '<div class="myfieldset"><h1 class="legend">'._('Vérification des comptes'
|
|||
$bilan=new Acc_Bilan($cn);
|
||||
$periode=new Periode($cn);
|
||||
list ($start_periode,$end_periode)=$periode->get_limit($exercice);
|
||||
$bilan->from=$start_periode->p_id;
|
||||
$bilan->to=$end_periode->p_id;
|
||||
global $g_parameter;
|
||||
if ( $g_parameter->MY_REPORT=="Y") {
|
||||
$bilan->from=$start_periode->p_id;
|
||||
$bilan->to=$end_periode->p_id;
|
||||
|
||||
} else {
|
||||
$first_periode=$cn->get_value("select to_char(p_start,'YYYY-MM-DD') from parm_periode order by p_start limit 1");
|
||||
$bilan->from=format_date($first_periode,'YYYY-MM-DD','DD.MM.YYYY');
|
||||
$bilan->to=$end_periode->last_day();
|
||||
}
|
||||
$bilan->verify();
|
||||
echo '</div>';
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue