Merged revisions 3036-3038 via svnmerge from
file:///home/developper/svn/phpcompta/branches/rel500 ........ r3037 | danydb | 2010-04-19 20:31:22 +0200 (Mon, 19 Apr 2010) | 3 lines Remove a card, do not remove from tmp_pcmn ........ r3038 | danydb | 2010-04-20 11:19:07 +0200 (Tue, 20 Apr 2010) | 4 lines Bug : centralize periode give the error 'periode undefined' Fixed' ........
This commit is contained in:
parent
bffb581b1d
commit
2bc01f19af
2 changed files with 4 additions and 24 deletions
|
|
@ -51,12 +51,12 @@ echo '<H2 CLASS="info"> Centralise </H2><BR>';
|
|||
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 '<H2 class="info">La période '.$_POST["periode"].' est centralisée</H2>';
|
||||
echo '<H2 class="info">La période '.$_POST["period"].' est centralisée</H2>';
|
||||
} else {
|
||||
echo '<H2 class="error">La période '.$_POST["periode"].' n\' a pu être centralisée</H2>';
|
||||
echo '<H2 class="error">La période '.$_POST["period"].' n\' a pu être centralisée</H2>';
|
||||
}
|
||||
}
|
||||
}// if ( isset ($_POST["central"] ))
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue