From 660554bd388af6cde74cd193b9083c7c96232d90 Mon Sep 17 00:00:00 2001
From: atm-corentin <165782689+atm-corentin@users.noreply.github.com>
Date: Thu, 22 Aug 2024 03:36:09 +0200
Subject: [PATCH 01/10] Fix change object element condtition to display the
select products when there is a stock correction (#30707)
* Fix change object element condition on sotck movement to print the select product
* FIX object element
---
htdocs/product/stock/tpl/stockcorrection.tpl.php | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/htdocs/product/stock/tpl/stockcorrection.tpl.php b/htdocs/product/stock/tpl/stockcorrection.tpl.php
index 708c527ee6a..03db7871053 100644
--- a/htdocs/product/stock/tpl/stockcorrection.tpl.php
+++ b/htdocs/product/stock/tpl/stockcorrection.tpl.php
@@ -153,7 +153,7 @@ if ($object->element == 'product') {
print img_picto('', 'stock', 'class="pictofixedwidth"').$formproduct->selectWarehouses($ident, 'id_entrepot', 'warehouseopen,warehouseinternal', 1, 0, 0, '', 0, 0, null, 'minwidth100 maxwidth300 widthcentpercentminusx');
print '';
}
-if ($object->element == 'stock') {
+if ($object->element == 'stockmouvement') {
print '
'.$langs->trans("Product").' | ';
print '';
print img_picto('', 'product');
@@ -162,7 +162,7 @@ if ($object->element == 'stock') {
}
print ' | '.$langs->trans("NumberOfUnit").' | ';
print '';
-if ($object->element == 'product' || $object->element == 'stock') {
+if ($object->element == 'product' || $object->element == 'stockmouvement') {
print ' |