导入模块: Difference between revisions

Jump to navigation Jump to search
Tag: 2017 source edit
Line 46: Line 46:
*步骤 4:将文件字段映射到数据集字段。左列中是您上传的文件中找到的字段。右列中是Dolibarr中的可用字段。您可以通过向上或向下拖动箭头来移动左列中的字段,以将输入文件中的每个字段都与对应的Dolibarr字段对齐。如果要 忽略/不 导入源文件中的某个字段,则应将其移动到"不导入的源文件字段"的行下方。
*步骤 4:将文件字段映射到数据集字段。左列中是您上传的文件中找到的字段。右列中是Dolibarr中的可用字段。您可以通过向上或向下拖动箭头来移动左列中的字段,以将输入文件中的每个字段都与对应的Dolibarr字段对齐。如果要 忽略/不 导入源文件中的某个字段,则应将其移动到"不导入的源文件字段"的行下方。


Note: At the end of the line, hovering over the question mark shows information on the data format/value expected by Dolibarr.
注意:在行尾,将鼠标悬停在问号上,会显示Dolibarr对字段输入所期望的数据格式、约束和可能的值示例。 映射完成后,您可以将映射保存为配置文件以供将来使用。点击"下一步"继续。
Once the mapping is complete, you may save the mapping as a profile for future use. Click "Next Step" to continue.


*Step 5: Run the import simulation. Check the field separator and string delimiter matches your file layout. If the file has column headers these must be ignored by using "Limit Range".
*Step 5: 如果文件有列标题,则选中"不导入源文件的第一行",然后点击"启动导入模拟"。模拟将检查字段中的值并显示错误报告。如果没有错误,可以点击"启动最终导入"来真正插入数据。导入的数据将添加到现有数据中。


Click on "Run Import Simulation" to start. The simulation will check the values in the fields and display an error report. If there is no error, you can click on "Start import final" to insert the data. The imported data is added to existing data.
*所有导入到dolibarr中的数据行都会被附件一个 import_key 字段,其值对应本条数据的导入日期。如果在数据导入后发现问题,则可以使用 SQL 查询轻松地找到有问题的导入数据行。


*All data is imported into Dolibarr with an additional field of "import_key" that corresponds to the date of the import to aid in resolving problems associated with a particular import. With a SQL editor it is relatively easy to find the imported lines in question.
= Problèmes connus =
Les problèmes suivants sont possibles avec la version 3.1. Ils sont corrigés avec les versions supérieures.
 
* Import des tiers :
 
Non affichage des tiers après un import avec le module, il est neccessaire de modifier le statut prospect (llx_societe.fk_stcomm) de NULL à '0' (besoin de détail à propos des valeurs possibles, la clé étrangère correspond elle à la table 'llx_c_stcomm' ?).
 
Exemple de requête SQL à passer après l'import pour corriger le problème :
<source lang="sql">UPDATE `llx_societe` SET `fk_stcomm` = '0' WHERE fk_stcomm IS NULL</source>
 
* Import des produits :
 
Non affichage des produits après un import avec le module, il est neccessaire de modifier le type de produit (llx_product.fk_product_type) de NULL à '0' (besoin de détail à propos des valeurs possibles).
 
Exemple de requête SQL à passer après l'import pour corriger le problème :
<source lang="sql">UPDATE `llx_product` SET `fk_product_type` = '0' WHERE fk_product_type IS NULL</source>


=Examples of use cases=
=Examples of use cases=
714

edits

Navigation menu