fix inventory scan

This commit is contained in:
Lucas Marcouiller 2021-10-21 18:08:20 +02:00
parent 1f64b09430
commit 4d2b96d029
2 changed files with 2 additions and 3 deletions

View File

@ -77,9 +77,9 @@ class FormOther
$out .= '<input type="radio" name="barcodemode" value="barcodeforproduct"> Scan a product barcode<br>';
$out .= '<input type="radio" name="barcodemode" value="barcodeforlotserial"> Scan a product lot or serial number<br>';
$stringaddbarcode = $langs->trans("QtyToAddAfterBarcodeScan","tmphtml");
$stringaddbarcode = $langs->trans("QtyToAddAfterBarcodeScan", "tmphtml");
$htmltoreplaceby = '<select name="selectaddorreplace"><option selected value="add">'.$langs->trans("Add").'</option><option value="replace">'.$langs->trans("ToReplace").'</option></select>';
$stringaddbarcode = str_replace("tmphtml",$htmltoreplaceby,$stringaddbarcode);
$stringaddbarcode = str_replace("tmphtml", $htmltoreplaceby, $stringaddbarcode);
$out .= $stringaddbarcode.' <input type="text" name="barcodeproductqty" class="width50 right" value="1"><br>';
$out .= '<textarea type="text" name="barcodelist" class="centpercent" autofocus rows="'.ROWS_3.'"></textarea>';

View File

@ -51,4 +51,3 @@ if (!defined('NOBROWSERNOTIF')) {
}
require '../../../main.inc.php';
require_once DOL_DOCUMENT_ROOT.'/product/inventory/class/inventory.class.php';