better rix

This commit is contained in:
Florian HENRY 2020-10-21 13:22:32 +02:00
parent a5e195d1c7
commit b0641e6d69

View File

@ -2317,8 +2317,9 @@ class CommandeFournisseur extends CommonOrder
$this->actionmsg2 = $comment; $this->actionmsg2 = $comment;
// Call trigger // Call trigger
$result += $this->call_trigger('ORDER_SUPPLIER_RECEIVE', $user); $result_trigger = $this->call_trigger('ORDER_SUPPLIER_RECEIVE', $user);
if ($result < 0) $error++; if ($result_trigger < 0) $error++;
else $result += (int) $result_trigger;
// End call triggers // End call triggers
if (empty($error)) if (empty($error))