FIXME: this return create an error in jenkins
This commit is contained in:
parent
d97f1937f8
commit
36ca334821
@ -953,7 +953,7 @@ class CommandeFournisseur extends CommonOrder
|
|||||||
if ($this->db->query($sql))
|
if ($this->db->query($sql))
|
||||||
{
|
{
|
||||||
$this->id = $this->db->last_insert_id(MAIN_DB_PREFIX."commande_fournisseur");
|
$this->id = $this->db->last_insert_id(MAIN_DB_PREFIX."commande_fournisseur");
|
||||||
|
|
||||||
if ($this->id) {
|
if ($this->id) {
|
||||||
$num=count($this->lines);
|
$num=count($this->lines);
|
||||||
|
|
||||||
@ -994,7 +994,7 @@ class CommandeFournisseur extends CommonOrder
|
|||||||
{
|
{
|
||||||
// On logue creation pour historique
|
// On logue creation pour historique
|
||||||
$this->log($user, 0, time());
|
$this->log($user, 0, time());
|
||||||
|
|
||||||
if (! $notrigger)
|
if (! $notrigger)
|
||||||
{
|
{
|
||||||
// Appel des triggers
|
// Appel des triggers
|
||||||
@ -1004,7 +1004,7 @@ class CommandeFournisseur extends CommonOrder
|
|||||||
if ($result < 0) { $error++; $this->errors=$interface->errors; }
|
if ($result < 0) { $error++; $this->errors=$interface->errors; }
|
||||||
// Fin appel triggers
|
// Fin appel triggers
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->db->commit();
|
$this->db->commit();
|
||||||
return $this->id;
|
return $this->id;
|
||||||
}
|
}
|
||||||
@ -1170,7 +1170,7 @@ class CommandeFournisseur extends CommonOrder
|
|||||||
$this->error="No price found for this quantity. Quantity may be too low ?";
|
$this->error="No price found for this quantity. Quantity may be too low ?";
|
||||||
$this->db->rollback();
|
$this->db->rollback();
|
||||||
dol_syslog(get_class($this)."::addline result=".$result." - ".$this->error, LOG_DEBUG);
|
dol_syslog(get_class($this)."::addline result=".$result." - ".$this->error, LOG_DEBUG);
|
||||||
return -1;
|
return -1; // FIXME this return create an error in jenkins
|
||||||
}
|
}
|
||||||
if ($result < -1)
|
if ($result < -1)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user