Remove duplicated logs
This commit is contained in:
parent
b87ce172c3
commit
646e8713f2
@ -430,7 +430,6 @@ class Facture extends CommonInvoice
|
|||||||
$sql.= ", ".(double) $this->multicurrency_tx;
|
$sql.= ", ".(double) $this->multicurrency_tx;
|
||||||
$sql.=")";
|
$sql.=")";
|
||||||
|
|
||||||
dol_syslog(get_class($this)."::create", LOG_DEBUG);
|
|
||||||
$resql=$this->db->query($sql);
|
$resql=$this->db->query($sql);
|
||||||
if ($resql)
|
if ($resql)
|
||||||
{
|
{
|
||||||
@ -440,7 +439,6 @@ class Facture extends CommonInvoice
|
|||||||
$this->ref='(PROV'.$this->id.')';
|
$this->ref='(PROV'.$this->id.')';
|
||||||
$sql = 'UPDATE '.MAIN_DB_PREFIX."facture SET facnumber='".$this->db->escape($this->ref)."' WHERE rowid=".$this->id;
|
$sql = 'UPDATE '.MAIN_DB_PREFIX."facture SET facnumber='".$this->db->escape($this->ref)."' WHERE rowid=".$this->id;
|
||||||
|
|
||||||
dol_syslog(get_class($this)."::create", LOG_DEBUG);
|
|
||||||
$resql=$this->db->query($sql);
|
$resql=$this->db->query($sql);
|
||||||
if (! $resql) $error++;
|
if (! $resql) $error++;
|
||||||
|
|
||||||
@ -749,12 +747,12 @@ class Facture extends CommonInvoice
|
|||||||
|
|
||||||
// Charge facture source
|
// Charge facture source
|
||||||
$facture=new Facture($this->db);
|
$facture=new Facture($this->db);
|
||||||
|
|
||||||
$this->fetch_optionals();
|
$this->fetch_optionals();
|
||||||
if(!empty($this->array_options)){
|
if(!empty($this->array_options)){
|
||||||
$facture->array_options = $this->array_options;
|
$facture->array_options = $this->array_options;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach($this->lines as &$line){
|
foreach($this->lines as &$line){
|
||||||
$line->fetch_optionals();//fetch extrafields
|
$line->fetch_optionals();//fetch extrafields
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user