translation string instead of error message text
This commit is contained in:
parent
8db6152a4d
commit
98c50f531c
@ -41,3 +41,5 @@ QCFrequency=Quality control frequency (in days)
|
||||
#Traceability - qc status
|
||||
OutOfOrder=Out of order
|
||||
InWorkingOrder=In working order
|
||||
|
||||
CantMoveNonExistantSerial=Error. You ask a move on a record for a serial that does not exists anymore. May be you take the same serial on same warehouse several times in same shipment or it was used by another shipment. Remove this shipment and prepare another one.
|
||||
|
||||
@ -42,3 +42,4 @@ HideLots=Masquer les lots
|
||||
#Traceability - qc status
|
||||
OutOfOrder=Hors d'usage
|
||||
InWorkingOrder=En état de marche
|
||||
CantMoveNonExistantSerial=Erreur : Vous avez demandé un mouvement sur un numéro de série qui n’existe plus. Peut-être avez-vous requis le même numéro de série plusieurs fois dans une même expédition, ou il a déjà servi dans une autre expédition. Supprimez cette expédition et préparez-en une autre.
|
||||
|
||||
@ -842,7 +842,9 @@ class MouvementStock extends CommonObject
|
||||
*/
|
||||
private function createBatch($dluo, $qty)
|
||||
{
|
||||
global $user;
|
||||
global $user, $langs;
|
||||
|
||||
$langs->load('productbatch');
|
||||
|
||||
$pdluo = new Productbatch($this->db);
|
||||
|
||||
@ -853,7 +855,7 @@ class MouvementStock extends CommonObject
|
||||
$result = $pdluo->fetch($dluo);
|
||||
if (empty($pdluo->id)) {
|
||||
// We didn't find the line. May be it was deleted before by a previous move in same transaction.
|
||||
$this->error = 'Error. You ask a move on a record for a serial that does not exists anymore. May be you take the same serial on same warehouse several times in same shipment or it was used by another shipment. Remove this shipment and prepare another one.';
|
||||
$this->error = $langs->trans('CantMoveNonExistantSerial');
|
||||
$this->errors[] = $this->error;
|
||||
$result = -2;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user