fix: bad setEventMessages input

This commit is contained in:
Florian HENRY 2021-07-21 14:52:37 +02:00
parent 34c31492cf
commit ee1e6c2780

View File

@ -209,7 +209,7 @@ if ($action == 'createmovements')
if ($result1 < 0) if ($result1 < 0)
{ {
$error++; $error++;
setEventMessages($product->errors, $product->errorss, 'errors'); setEventMessages($product->error, $product->errors, 'errors');
} }
// Add stock // Add stock
@ -225,7 +225,7 @@ if ($action == 'createmovements')
if ($result2 < 0) if ($result2 < 0)
{ {
$error++; $error++;
setEventMessages($product->errors, $product->errorss, 'errors'); setEventMessages($product->error, $product->errors, 'errors');
} }
} else { } else {
$arraybatchinfo = $product->loadBatchInfo($batch); $arraybatchinfo = $product->loadBatchInfo($batch);
@ -256,7 +256,7 @@ if ($action == 'createmovements')
if ($result1 < 0) if ($result1 < 0)
{ {
$error++; $error++;
setEventMessages($product->errors, $product->errorss, 'errors'); setEventMessages($product->error, $product->errors, 'errors');
} }
// Add stock // Add stock
@ -275,7 +275,7 @@ if ($action == 'createmovements')
if ($result2 < 0) if ($result2 < 0)
{ {
$error++; $error++;
setEventMessages($product->errors, $product->errorss, 'errors'); setEventMessages($product->error, $product->errors, 'errors');
} }
} }
} else { } else {