diff --git a/include/central.inc.php b/include/central.inc.php index 93fce402b..475a85f5d 100644 --- a/include/central.inc.php +++ b/include/central.inc.php @@ -51,12 +51,12 @@ echo '

Centralise


'; if ( isset ($_POST["central"] )) { //demande centralise -if ( $_POST["periode"] != "" ) { - $ret=Centralise($cn,$_POST["periode"]); +if ( $_POST["period"] != "" ) { + $ret=Centralise($cn,$_POST["period"]); if ($ret==NOERROR) { - echo '

La période '.$_POST["periode"].' est centralisée

'; + echo '

La période '.$_POST["period"].' est centralisée

'; } else { - echo '

La période '.$_POST["periode"].' n\' a pu être centralisée

'; + echo '

La période '.$_POST["period"].' n\' a pu être centralisée

'; } } }// if ( isset ($_POST["central"] )) diff --git a/include/class_fiche.php b/include/class_fiche.php index b02a3641f..d8c8248b3 100644 --- a/include/class_fiche.php +++ b/include/class_fiche.php @@ -813,26 +813,6 @@ Array return; } - if ( $fiche_def->create_account=='t' ) { - // Retrieve the 'poste comptable' - $class=$this->strAttribut(ATTR_DEF_ACCOUNT); - $is_used_jrnx=0; - if ( trim(strlen($class)) != 0 && isNumber($class) == 1 ) - $is_used_jrnx= $this->cn->count_sql("select * from jrnx where j_poste=$1",array($class)); - // if class is not NULL and if we use it before, we can't remove it - if (FormatString($class) != null && $is_used_jrnx != 0 ) - { - alert('Impossible ce poste est utilisée dans un journal'); - return; - } - else - // Remove in PCMN - if ( trim(strlen($class)) != 0 && isNumber($class) == 1 && $is_used_jrnx == 0) - { - $this->cn->exec_sql("delete from tmp_pcmn where pcm_val=$1",array($class)); - } - - } $this->delete(); }