logs
This commit is contained in:
parent
9b57dadc18
commit
1031fcd796
@ -1984,6 +1984,7 @@ class Facture extends CommonInvoice
|
|||||||
$this->db->begin();
|
$this->db->begin();
|
||||||
|
|
||||||
dol_syslog(get_class($this)."::set_paid rowid=".$this->id, LOG_DEBUG);
|
dol_syslog(get_class($this)."::set_paid rowid=".$this->id, LOG_DEBUG);
|
||||||
|
|
||||||
$sql = 'UPDATE '.MAIN_DB_PREFIX.'facture SET';
|
$sql = 'UPDATE '.MAIN_DB_PREFIX.'facture SET';
|
||||||
$sql.= ' fk_statut='.self::STATUS_CLOSED;
|
$sql.= ' fk_statut='.self::STATUS_CLOSED;
|
||||||
if (! $close_code) $sql.= ', paye=1';
|
if (! $close_code) $sql.= ', paye=1';
|
||||||
@ -1991,7 +1992,6 @@ class Facture extends CommonInvoice
|
|||||||
if ($close_note) $sql.= ", close_note='".$this->db->escape($close_note)."'";
|
if ($close_note) $sql.= ", close_note='".$this->db->escape($close_note)."'";
|
||||||
$sql.= ' WHERE rowid = '.$this->id;
|
$sql.= ' WHERE rowid = '.$this->id;
|
||||||
|
|
||||||
dol_syslog(get_class($this)."::set_paid", LOG_DEBUG);
|
|
||||||
$resql = $this->db->query($sql);
|
$resql = $this->db->query($sql);
|
||||||
if ($resql)
|
if ($resql)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user