diff --git a/htdocs/product/stock/replenish.php b/htdocs/product/stock/replenish.php index 465ffd9d11a..368b12141bf 100644 --- a/htdocs/product/stock/replenish.php +++ b/htdocs/product/stock/replenish.php @@ -171,16 +171,20 @@ if($action == 'order') { $id = $order->create($user); if($id < 0) { //error stuff + $fail++; + setEventMessage($langs->trans('OrderFail'), 'errors'); } $i++; } + if(!$fail) { + setEventMessage($langs->trans('OrderCreated'), 'mesgs'); + } } } /* * View */ - $htmlother=new FormOther($db); $title=$langs->trans('Replenishment');