diff --git a/htdocs/core/class/html.formother.class.php b/htdocs/core/class/html.formother.class.php
index 93aee37987f..5f00ed6877b 100644
--- a/htdocs/core/class/html.formother.class.php
+++ b/htdocs/core/class/html.formother.class.php
@@ -92,10 +92,6 @@ class FormOther
$out .= '';
$out .= '
';
- $out .= ''.$langs->trans("FeatureNotYetAvailable").'';
-
- // TODO Add call of javascript $jstoexecuteonadd so each scan will add qty into the inventory page + an ajax save.
-
$out .= '';
+ tabproduct.forEach(product => {
+ if(product.Qty!=0){
+ console.log("We change #"+product.Id+"_input to match input in scanner box");
+ $("#"+product.Id+"_input")[0].value = product.Qty*barcodeproductqty;
+ }
+ })
+ document.forms["formrecord"].submit();
+ }
+ }';
+ print '';
+ }
include DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
$formother = new FormOther($db);
print $formother->getHTMLScannerForm();
}
+ //Call method to undo changes in real qty
+ print '';
print '