diff --git a/htdocs/product/inventory/inventory.php b/htdocs/product/inventory/inventory.php index 6454bca8a27..2e157de504a 100644 --- a/htdocs/product/inventory/inventory.php +++ b/htdocs/product/inventory/inventory.php @@ -220,7 +220,6 @@ if (empty($reshook)) { } } } - } $i++; } @@ -922,7 +921,7 @@ if ($object->id > 0) { print ''; print $form->textwithpicto($langs->trans("RealQty"), $langs->trans("InventoryRealQtyHelp")); print ''; - } + } if ($object->status == $object::STATUS_DRAFT || $object->status == $object::STATUS_VALIDATED) { // Actions or link to stock movement print ''; @@ -1025,12 +1024,12 @@ if ($object->id > 0) { if (!empty($conf->productbatch->enabled)) { print ''; $batch_static = new Productlot($db); - $res = $batch_static->fetch(0, $product_static->id, $obj->batch); - if($res){ + $res = $batch_static->fetch(0, $product_static->id, $obj->batch); + if ($res) { print $batch_static->getNomUrl(1); - } else { + } else { print dol_escape_htmltag($obj->batch); - } + } print ''; } @@ -1100,7 +1099,7 @@ if ($object->id > 0) { print ''; print ''; print ''; - } + } // Picto delete line print ''; @@ -1143,7 +1142,7 @@ if ($object->id > 0) { print ''; print $obj->qty_view; // qty found print ''; - } + } if ($obj->fk_movement > 0) { $stockmovment = new MouvementStock($db); $stockmovment->fetch($obj->fk_movement);