fix error message details
This commit is contained in:
parent
25f66bd024
commit
6a4df05fd0
@ -322,8 +322,8 @@ class MouvementStock extends CommonObject
|
|||||||
if (! $foundforbatch || $qtyisnotenough)
|
if (! $foundforbatch || $qtyisnotenough)
|
||||||
{
|
{
|
||||||
$langs->load("stocks");
|
$langs->load("stocks");
|
||||||
$this->error = $langs->trans('qtyToTranferLotIsNotEnough');
|
$this->error = $langs->trans('qtyToTranferLotIsNotEnough').' : '.$product->ref;
|
||||||
$this->errors[] = $langs->trans('qtyToTranferLotIsNotEnough');
|
$this->errors[] = $langs->trans('qtyToTranferLotIsNotEnough').' : '.$product->ref;
|
||||||
$this->db->rollback();
|
$this->db->rollback();
|
||||||
return -8;
|
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))
|
if (empty($product->stock_warehouse[$entrepot_id]->real) || $product->stock_warehouse[$entrepot_id]->real < abs($qty))
|
||||||
{
|
{
|
||||||
$langs->load("stocks");
|
$langs->load("stocks");
|
||||||
$this->error = $langs->trans('qtyToTranferIsNotEnough');
|
$this->error = $langs->trans('qtyToTranferIsNotEnough').' : '.$product->ref;
|
||||||
$this->errors[] = $langs->trans('qtyToTranferIsNotEnough');
|
$this->errors[] = $langs->trans('qtyToTranferIsNotEnough').' : '.$product->ref;
|
||||||
$this->db->rollback();
|
$this->db->rollback();
|
||||||
return -8;
|
return -8;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user