better rix

This commit is contained in:
Florian HENRY 2020-10-21 13:20:17 +02:00
parent 13dfa56c2f
commit a5e195d1c7

View File

@ -2311,15 +2311,14 @@ class CommandeFournisseur extends CommonOrder
$resql = $this->db->query($sql); $resql = $this->db->query($sql);
if ($resql) if ($resql)
{ {
$result = 0; $result = 1;
$old_statut = $this->statut; $old_statut = $this->statut;
$this->statut = $statut; $this->statut = $statut;
$this->actionmsg2 = $comment; $this->actionmsg2 = $comment;
// Call trigger // Call trigger
$result = $this->call_trigger('ORDER_SUPPLIER_RECEIVE', $user); $result += $this->call_trigger('ORDER_SUPPLIER_RECEIVE', $user);
if ($result < 0) $error++; if ($result < 0) $error++;
else $result = 1;
// End call triggers // End call triggers
if (empty($error)) if (empty($error))