diff --git a/htdocs/product/inventory/inventory.php b/htdocs/product/inventory/inventory.php
index 26921839b6e..a7bffa59e55 100644
--- a/htdocs/product/inventory/inventory.php
+++ b/htdocs/product/inventory/inventory.php
@@ -1194,7 +1194,7 @@ if ($resql) {
if ($permissiontoupdatestock) {
print ''.img_delete().'';
}
- $qty_tmp = price2num(GETPOST("id_".$obj->rowid."_input_tmp", 'MS')) >= 0 ? GETPOST("id_".$obj->rowid."_input_tmp") : $qty_view;
+ $qty_tmp = price2num(GETPOST("id_".$obj->rowid."_input_tmp"), 'MS') >= 0 ? GETPOST("id_".$obj->rowid."_input_tmp") : $qty_view;
print '';
print '';
} else {