Ajout syslog
This commit is contained in:
parent
2099c1863e
commit
29783055c4
@ -724,6 +724,8 @@ class Facture
|
|||||||
*/
|
*/
|
||||||
function updateline($rowid, $desc, $pu, $qty, $remise_percent=0, $datestart='', $dateend='')
|
function updateline($rowid, $desc, $pu, $qty, $remise_percent=0, $datestart='', $dateend='')
|
||||||
{
|
{
|
||||||
|
dolibarr_syslog("Facture::UpdateLine");
|
||||||
|
|
||||||
if ($this->brouillon)
|
if ($this->brouillon)
|
||||||
{
|
{
|
||||||
if (strlen(trim($qty))==0)
|
if (strlen(trim($qty))==0)
|
||||||
@ -758,10 +760,12 @@ class Facture
|
|||||||
$sql .= " WHERE rowid = $rowid ;";
|
$sql .= " WHERE rowid = $rowid ;";
|
||||||
|
|
||||||
$result = $this->db->query( $sql);
|
$result = $this->db->query( $sql);
|
||||||
if ($result) {
|
if ($result)
|
||||||
|
{
|
||||||
$this->updateprice($this->id);
|
$this->updateprice($this->id);
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
dolibarr_print_error($this->db);
|
dolibarr_print_error($this->db);
|
||||||
}
|
}
|
||||||
return $result;
|
return $result;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user