add of selectimportfieldsource in lang

This commit is contained in:
lmarcouiller 2022-05-10 15:50:01 +02:00
parent ed13280ea1
commit 7e439a8248
2 changed files with 7 additions and 4 deletions

View File

@ -791,8 +791,10 @@ if ($step == 4 && $datatoimport) {
// Put into array fieldssource starting with 1.
$i = 1;
foreach ($arrayrecord as $key => $val) {
$fieldssource[$i]['example1'] = dol_trunc($val['val'], 24);
$i++;
if ($val["type"] != -1) {
$fieldssource[$i]['example1'] = dol_trunc($val['val'], 24);
$i++;
}
}
$obj->import_close_file();
}
@ -994,7 +996,7 @@ if ($step == 4 && $datatoimport) {
print '<div class="marginbottomonly">';
print '<span class="opacitymedium">';
$s = $langs->trans("SelectImportFields", '{s1}');
$s = $langs->trans("SelectImportFieldsSource", '{s1}');
$s = str_replace('{s1}', img_picto('', 'grip_title', '', false, 0, 0, '', '', 0), $s);
print $s;
print '</span> ';

View File

@ -136,4 +136,5 @@ NbUpdate=Number of updated lines: %s
MultipleRecordFoundWithTheseFilters=Multiple records have been found with these filters: %s
StocksWithBatch=Stocks and location (warehouse) of products with batch/serial number
WarningFirstImportedLine=The first line(s) will not be imported with the current selection
NotUsedFields=Fields of database not used
NotUsedFields=Fields of database not used
SelectImportFieldsSource = Choose the source file fields you want to import and their target field in database by choosing the fields in each select boxes, or select a predefined import profile: