Merge branch '7.0' of git@github.com:Dolibarr/dolibarr.git into 8.0
This commit is contained in:
commit
60b8982a74
@ -301,17 +301,17 @@ class ChargeSociales extends CommonObject
|
|||||||
$sql.= ", date_ech='".$this->db->idate($this->date_ech)."'";
|
$sql.= ", date_ech='".$this->db->idate($this->date_ech)."'";
|
||||||
$sql.= ", periode='".$this->db->idate($this->periode)."'";
|
$sql.= ", periode='".$this->db->idate($this->periode)."'";
|
||||||
$sql.= ", amount='".price2num($this->amount,'MT')."'";
|
$sql.= ", amount='".price2num($this->amount,'MT')."'";
|
||||||
$sql.= ", fk_projet='".$this->db->escape($this->fk_project)."'";
|
$sql.= ", fk_projet=".($this->fk_project>0?$this->db->escape($this->fk_project):"NULL");
|
||||||
$sql.= ", fk_user_modif=".$user->id;
|
$sql.= ", fk_user_modif=".$user->id;
|
||||||
$sql.= " WHERE rowid=".$this->id;
|
$sql.= " WHERE rowid=".$this->id;
|
||||||
|
|
||||||
dol_syslog(get_class($this)."::update", LOG_DEBUG);
|
dol_syslog(get_class($this)."::update", LOG_DEBUG);
|
||||||
$resql=$this->db->query($sql);
|
$resql=$this->db->query($sql);
|
||||||
|
|
||||||
if (! $resql) {
|
if (! $resql) {
|
||||||
$error++; $this->errors[]="Error ".$this->db->lasterror();
|
$error++; $this->errors[]="Error ".$this->db->lasterror();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! $error)
|
if (! $error)
|
||||||
{
|
{
|
||||||
if (! $notrigger)
|
if (! $notrigger)
|
||||||
@ -322,7 +322,7 @@ class ChargeSociales extends CommonObject
|
|||||||
// End call triggers
|
// End call triggers
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Commit or rollback
|
// Commit or rollback
|
||||||
if ($error)
|
if ($error)
|
||||||
{
|
{
|
||||||
@ -339,8 +339,8 @@ class ChargeSociales extends CommonObject
|
|||||||
$this->db->commit();
|
$this->db->commit();
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user