fix with advices
This commit is contained in:
parent
1e282aaded
commit
d964aabcea
@ -336,10 +336,10 @@ if ($action == 'importCSV' && !empty($user->rights->stock->mouvement->creer)) {
|
||||
continue;
|
||||
}
|
||||
//var_dump($data);
|
||||
$tmp_id_sw = dol_escape_htmltag($data[$i][0]['val']);
|
||||
$tmp_id_tw = dol_escape_htmltag($data[$i][1]['val']);
|
||||
$tmp_id_product = dol_escape_htmltag($data[$i][2]['val']);
|
||||
$tmp_qty = dol_escape_htmltag($data[$i][3]['val']);
|
||||
$tmp_id_sw = (int) $data[$i][0]['val'];
|
||||
$tmp_id_tw = (int) dol_escape_htmltag($data[$i][1]['val']);
|
||||
$tmp_id_product = (int) dol_escape_htmltag($data[$i][2]['val']);
|
||||
$tmp_qty = price2num((float) $data[$i][3]['val'], 'MS');
|
||||
$tmp_batch = dol_escape_htmltag($data[$i][4]['val']);
|
||||
|
||||
if (!is_numeric($tmp_id_product)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user