Can make update during import of members

This commit is contained in:
Laurent Destailleur 2021-10-27 09:23:03 +02:00
parent e9ba9fc103
commit 4bde20dd8d
2 changed files with 3 additions and 2 deletions

View File

@ -375,6 +375,7 @@ class modAdherent extends DolibarrModules
if (!empty($conf->societe->enabled)) { if (!empty($conf->societe->enabled)) {
$this->import_examplevalues_array[$r]['a.fk_soc'] = "rowid or name"; $this->import_examplevalues_array[$r]['a.fk_soc'] = "rowid or name";
} }
$this->import_updatekeys_array[$r] = array('a.login'=>'Login');
// Cronjobs // Cronjobs
$arraydate = dol_getdate(dol_now()); $arraydate = dol_getdate(dol_now());

View File

@ -1451,10 +1451,10 @@ if ($step == 5 && $datatoimport) {
print $langs->trans("ImportFromToLine"); print $langs->trans("ImportFromToLine");
print '</td><td>'; print '</td><td>';
if ($action == 'launchsimu') { if ($action == 'launchsimu') {
print '<input type="number" class="maxwidth50" name="excludefirstlinebis" disabled="disabled" value="'.$excludefirstline.'">'; print '<input type="number" class="maxwidth50 right" name="excludefirstlinebis" disabled="disabled" value="'.$excludefirstline.'">';
print '<input type="hidden" name="excludefirstline" value="'.$excludefirstline.'">'; print '<input type="hidden" name="excludefirstline" value="'.$excludefirstline.'">';
} else { } else {
print '<input type="number" class="maxwidth50" name="excludefirstline" value="'.$excludefirstline.'">'; print '<input type="number" class="maxwidth50 right" name="excludefirstline" value="'.$excludefirstline.'">';
print $form->textwithpicto("", $langs->trans("SetThisValueTo2ToExcludeFirstLine")); print $form->textwithpicto("", $langs->trans("SetThisValueTo2ToExcludeFirstLine"));
} }
print ' - '; print ' - ';