This commit is contained in:
Laurent Destailleur 2024-09-04 23:00:05 +02:00
parent 10924547ea
commit 538ab5a9f3

View File

@ -766,8 +766,8 @@ if (empty($reshook)) {
if ($lines[$i]->fk_product > 0) {
// line without lot
if ($lines[$i]->entrepot_id == 0) {
// single warehouse shipment line
$stockLocation = 0;
// single warehouse shipment line or line in several warehouses context but with warehouse not defined
$stockLocation = "entl".$line_id;
$qty = "qtyl".$line_id;
$line->id = $line_id;
$line->entrepot_id = GETPOST($stockLocation, 'int');