From 3b6fa4a52b14cbda3550194842b9aeb09884e8a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Salvador?= Date: Tue, 11 Jun 2013 18:47:19 +0200 Subject: [PATCH] message when succeeds/fails to create orders --- htdocs/product/stock/replenish.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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');