Merge pull request #7104 from tuxgasy/develop_shipment_failed_no_error

Fix #7103 : No error message on validate shipment if stock movement failed
This commit is contained in:
Laurent Destailleur 2017-07-07 19:55:32 +02:00 committed by GitHub
commit 0eb6a25342

View File

@ -716,6 +716,7 @@ class Expedition extends CommonObject
if ($result < 0) {
$error++;
$this->errors[]=$mouvS->error;
$this->errors = array_merge($this->errors, $mouvS->errors);
break;
}
}
@ -729,6 +730,7 @@ class Expedition extends CommonObject
if ($result < 0) {
$error++;
$this->errors[]=$mouvS->error;
$this->errors = array_merge($this->errors, $mouvS->errors);
break;
}
}