diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index b18ed68eaa2..d75ec44798f 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -2577,7 +2577,7 @@ class Form
}
}
if ($showempty) {
- $out .= '';
+ $out .= '';
}
$i = 0;
diff --git a/htdocs/langs/en_US/stocks.lang b/htdocs/langs/en_US/stocks.lang
index aabbe1791b3..4585841911b 100644
--- a/htdocs/langs/en_US/stocks.lang
+++ b/htdocs/langs/en_US/stocks.lang
@@ -155,7 +155,7 @@ StockMustBeEnoughForInvoice=Stock level must be enough to add product/service to
StockMustBeEnoughForOrder=Stock level must be enough to add product/service to order (check is done on current real stock when adding a line into order whatever the rule for automatic stock change)
StockMustBeEnoughForShipment= Stock level must be enough to add product/service to shipment (check is done on current real stock when adding a line into shipment whatever the rule for automatic stock change)
MovementLabel=Label of movement
-TypeMovement=Type of movement
+TypeMovement=Direction of movement
DateMovement=Date of movement
InventoryCode=Movement or inventory code
IsInPackage=Contained into package
diff --git a/htdocs/product/stock/class/mouvementstock.class.php b/htdocs/product/stock/class/mouvementstock.class.php
index 3c04618c900..8b2d729c29c 100644
--- a/htdocs/product/stock/class/mouvementstock.class.php
+++ b/htdocs/product/stock/class/mouvementstock.class.php
@@ -1107,6 +1107,47 @@ class MouvementStock extends CommonObject
// There is no specific properties. All data into insert are provided as method parameter.
}
+ /**
+ * Return html string with picto for type of movement
+ *
+ * @param int $withlabel With label
+ * @return string String with URL
+ */
+ public function getTypeMovement($withlabel = 0)
+ {
+ global $langs;
+
+ $s = '';
+ switch ($this->type) {
+ case "0":
+ $s = '';
+ if ($withlabel) {
+ $s .= $langs->trans('StockIncreaseAfterCorrectTransfer');
+ }
+ break;
+ case "1":
+ $s = '';
+ if ($withlabel) {
+ $s .= $langs->trans('StockDecreaseAfterCorrectTransfer');
+ }
+ break;
+ case "2":
+ $s = '';
+ if ($withlabel) {
+ $s .= $langs->trans('StockDecrease');
+ }
+ break;
+ case "3":
+ $s = '';
+ if ($withlabel) {
+ $s .= $langs->trans('StockIncrease');
+ }
+ break;
+ }
+
+ return $s;
+ }
+
/**
* Return a link (with optionaly the picto)
* Use this->id,this->lastname, this->firstname
diff --git a/htdocs/product/stock/movement_list.php b/htdocs/product/stock/movement_list.php
index 7c2e2df67e5..62cbe7f8620 100644
--- a/htdocs/product/stock/movement_list.php
+++ b/htdocs/product/stock/movement_list.php
@@ -944,22 +944,6 @@ if ($resql) {
print '';
print '';
}
- if (!empty($arrayfields['m.type_mouvement']['checked'])) {
- // Type of movement
- print '