Fix: La suppression d'une adhsion n'effaait pas l'criture bancaire.

This commit is contained in:
Laurent Destailleur
2007-11-18 22:10:19 +00:00
parent 74c8bbbe7f
commit 4ce1d87927
6 changed files with 95 additions and 69 deletions

View File

@@ -252,7 +252,11 @@ class DoliDb
if (! $this->transaction_opened)
{
$ret=$this->query("BEGIN;");
if ($ret) $this->transaction_opened++;
if ($ret)
{
$this->transaction_opened++;
dolibarr_syslog("BEGIN Transaction",LOG_DEBUG);
}
return $ret;
}
else
@@ -271,7 +275,11 @@ class DoliDb
if ($this->transaction_opened<=1)
{
$ret=$this->query("COMMIT;");
if ($ret) $this->transaction_opened=0;
if ($ret)
{
$this->transaction_opened=0;
dolibarr_syslog("COMMIT Transaction",LOG_DEBUG);
}
return $ret;
}
else
@@ -290,7 +298,8 @@ class DoliDb
if ($this->transaction_opened<=1)
{
$ret=$this->query("ROLLBACK;");
$this->transaction_opened=0;
$this->transaction_opened=0;
dolibarr_syslog("ROLLBACK Transaction",LOG_DEBUG);
return $ret;
}
else