Fix: pgsql compatibility
Todo: probleme d'imbrication de begin/commit
This commit is contained in:
parent
9f5a3f4f8e
commit
3d641b236f
@ -137,7 +137,7 @@ if ($_POST['action'] == 'confirm_paiement' && $_POST['confirm'] == 'yes')
|
|||||||
|
|
||||||
if (! $error)
|
if (! $error)
|
||||||
{
|
{
|
||||||
$db->begin();
|
//$db->begin(); TODO probleme d'imbrication de begin/commit
|
||||||
|
|
||||||
// Creation de la ligne paiement
|
// Creation de la ligne paiement
|
||||||
$paiement = new Paiement($db);
|
$paiement = new Paiement($db);
|
||||||
@ -172,7 +172,7 @@ if ($_POST['action'] == 'confirm_paiement' && $_POST['confirm'] == 'yes')
|
|||||||
if ($bank_line_id > 0)
|
if ($bank_line_id > 0)
|
||||||
{
|
{
|
||||||
$paiement->update_fk_bank($bank_line_id);
|
$paiement->update_fk_bank($bank_line_id);
|
||||||
// Mise a jour liens (pour chaque facture concern<EFBFBD>es par le paiement)
|
// Mise a jour liens (pour chaque facture concernees par le paiement)
|
||||||
foreach ($paiement->amounts as $key => $value)
|
foreach ($paiement->amounts as $key => $value)
|
||||||
{
|
{
|
||||||
$facid = $key;
|
$facid = $key;
|
||||||
@ -205,7 +205,7 @@ if ($_POST['action'] == 'confirm_paiement' && $_POST['confirm'] == 'yes')
|
|||||||
if ($error == 0)
|
if ($error == 0)
|
||||||
{
|
{
|
||||||
$loc = DOL_URL_ROOT.'/compta/paiement/fiche.php?id='.$paiement_id;
|
$loc = DOL_URL_ROOT.'/compta/paiement/fiche.php?id='.$paiement_id;
|
||||||
$db->commit();
|
//$db->commit(); TODO probleme d'imbrication de begin/commit
|
||||||
Header('Location: '.$loc);
|
Header('Location: '.$loc);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user