Fix: La regeneration des factures doit se faire sur la liste des factures du paiement.
This commit is contained in:
parent
685095c25d
commit
40702c647f
@ -314,14 +314,16 @@ class Paiement
|
|||||||
function valide()
|
function valide()
|
||||||
{
|
{
|
||||||
$sql = 'UPDATE '.MAIN_DB_PREFIX.'paiement SET statut = 1 WHERE rowid = '.$this->id;
|
$sql = 'UPDATE '.MAIN_DB_PREFIX.'paiement SET statut = 1 WHERE rowid = '.$this->id;
|
||||||
|
|
||||||
|
dolibarr_syslog('Paiement::valide sql='.$sql);
|
||||||
$result = $this->db->query($sql);
|
$result = $this->db->query($sql);
|
||||||
if ($result)
|
if ($result)
|
||||||
{
|
{
|
||||||
return 0;
|
return 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
dolibarr_syslog('Paiement::Valide Error -1');
|
dolibarr_syslog('Paiement::valide Error -1');
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -337,6 +339,7 @@ class Paiement
|
|||||||
$sql .= ' FROM '.MAIN_DB_PREFIX.'paiement as c';
|
$sql .= ' FROM '.MAIN_DB_PREFIX.'paiement as c';
|
||||||
$sql .= ' WHERE c.rowid = '.$id;
|
$sql .= ' WHERE c.rowid = '.$id;
|
||||||
|
|
||||||
|
dolibarr_syslog('Paiement::info sql='.$sql);
|
||||||
$result = $this->db->query($sql);
|
$result = $this->db->query($sql);
|
||||||
|
|
||||||
if ($result)
|
if ($result)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user