diff --git a/htdocs/product/stock/class/mouvementstock.class.php b/htdocs/product/stock/class/mouvementstock.class.php index 7991477e146..98103af8ccf 100644 --- a/htdocs/product/stock/class/mouvementstock.class.php +++ b/htdocs/product/stock/class/mouvementstock.class.php @@ -322,8 +322,8 @@ class MouvementStock extends CommonObject if (! $foundforbatch || $qtyisnotenough) { $langs->load("stocks"); - $this->error = $langs->trans('qtyToTranferLotIsNotEnough'); - $this->errors[] = $langs->trans('qtyToTranferLotIsNotEnough'); + $this->error = $langs->trans('qtyToTranferLotIsNotEnough').' : '.$product->ref; + $this->errors[] = $langs->trans('qtyToTranferLotIsNotEnough').' : '.$product->ref; $this->db->rollback(); return -8; } @@ -333,8 +333,8 @@ class MouvementStock extends CommonObject if (empty($product->stock_warehouse[$entrepot_id]->real) || $product->stock_warehouse[$entrepot_id]->real < abs($qty)) { $langs->load("stocks"); - $this->error = $langs->trans('qtyToTranferIsNotEnough'); - $this->errors[] = $langs->trans('qtyToTranferIsNotEnough'); + $this->error = $langs->trans('qtyToTranferIsNotEnough').' : '.$product->ref; + $this->errors[] = $langs->trans('qtyToTranferIsNotEnough').' : '.$product->ref; $this->db->rollback(); return -8; }