Merge pull request #10211 from atm-john/fix_error_message_details
Add détails to error message
This commit is contained in:
commit
78cdade1a7
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user