Update expedition.class.php
This commit is contained in:
parent
1a7c09b7d5
commit
81e193b725
@ -2418,7 +2418,6 @@ class ExpeditionLigne extends CommonObjectLine
|
|||||||
$result=$this->insertExtraFields();
|
$result=$this->insertExtraFields();
|
||||||
if ($result < 0)
|
if ($result < 0)
|
||||||
{
|
{
|
||||||
$this->errors[]=$this->error;
|
|
||||||
$error++;
|
$error++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2429,7 +2428,6 @@ class ExpeditionLigne extends CommonObjectLine
|
|||||||
$result=$this->call_trigger('LINESHIPPING_INSERT',$user);
|
$result=$this->call_trigger('LINESHIPPING_INSERT',$user);
|
||||||
if ($result < 0)
|
if ($result < 0)
|
||||||
{
|
{
|
||||||
$this->errors[]=$this->error;
|
|
||||||
$error++;
|
$error++;
|
||||||
}
|
}
|
||||||
// End call triggers
|
// End call triggers
|
||||||
@ -2445,6 +2443,7 @@ class ExpeditionLigne extends CommonObjectLine
|
|||||||
dol_syslog(get_class($this)."::delete ".$errmsg, LOG_ERR);
|
dol_syslog(get_class($this)."::delete ".$errmsg, LOG_ERR);
|
||||||
$this->error.=($this->error?', '.$errmsg:$errmsg);
|
$this->error.=($this->error?', '.$errmsg:$errmsg);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->db->rollback();
|
$this->db->rollback();
|
||||||
return -1*$error;
|
return -1*$error;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user