Dolibarr/dolibarr — pull request #418 by cbattarel (2012-09-27 15:22:40+00:00)
Title: evolutions for import module

1) select csv separator and enclosure (step 4)

2) add ability (chosen in step 5 and 6) to update record if already exists - needs new import_update_keys_array in module description (still works if not present)

sample for modProduct :
$this->import_update_keys_array[$r] = array(MAIN_DB_PREFIX.'product'=>array('ref')); //it will generate an update ... where ref="current_csv_record_ref" if the insert fails

more to come :
ability to choose what to do with the records in database that are not in the import file : ignore/delete/specific action/ask user (will be defined in modules desc)