Khác biệt giữa các bản “Nhập tệp CSV vào Kiu ERP/en”

Từ Kiu Wiki
Bước tới: chuyển hướng, tìm kiếm
(Tạo trang mới với nội dung “'''Where can I change the date import format?'''”)
 
(Không hiển thị 41 phiên bản của cùng người dùng ở giữa)
Dòng 14: Dòng 14:
 
'''Where can I change the date import format?'''
 
'''Where can I change the date import format?'''
  
Kiu
+
Kiu ERP can automatically detect if a column is a date and it will try to guess the date format from a set of most used date format. While this process can work for a lot of simple date format, some exotic date format will not be recognize and it is also possible to have some confusion (day and month inverted as example) as it is difficult to guess correctly which part is the day and which one is the month in a date like '01-03-2016'.
ERP có thể tự động phát hiện cột ngày tháng và cố gắng đoán định dạng ngày từ
+
các phương án được sử dụng nhiều nhất. Mặc dù quy trình này có thể áp dụng cho
+
rất nhiều định dạng ngày tháng đơn giản, hệ thống không thể nhận biết một số
+
định dạng ngày lạ và cũng có thể nhầm lẫn (ví dụng đảo ngược ngày và tháng)
+
không dễ đoán một cách chính xác đâu là ngày và đâu là tháng trong ví dụ sau
+
'01 -03-2016 '.
+
  
Để xem
+
To view which date format Kiu ERP has found from your file you can check the Date Format that is shown when clicking on Options under the file selector. If this format is incorrect you can change it to your liking using the ISO 8601 to define the format.
định dạng ngày mà Kiu ERP tìm thấy từ file của bạn, bạn có thể kiểm tra   '''Định dạng ngày tháng'''   được hiển thị khi nhấn vào   '''Tùy chọn'''   dưới trình chọn tập tin. Nếu định dạng
+
này không chính xác, bạn có thể thay đổi nó theo ý thích bằng cách sử dụng   ''ISO
+
8601''   để xác định định dạng.<blockquote>'''Chú thích'''</blockquote><blockquote>Nếu
+
bạn đang nhập file excel (.xls, .xlsx), bạn có thể sử dụng các ô ghi ngày để
+
lưu ngày do cách hiển thị ngày trong excel khác với cách lưu trữ. Bằng cách
+
này, bạn có thể chắc chắn định dạng ngày là chính xác trong Kiu ERP dù chọn bất
+
cứ định dạng ngày nào.</blockquote>'''Tôi có thể nhập số có biểu tượng
+
tiền tệ không (ví dụ như: 32.00$)?'''
+
  
Có, hệ
+
'''Note'''
thống cho phép nhập số nằm trong dấu ngoặc đơn để biểu thị số âm cũng như số có
+
biểu tượng tiền tệ đi kèm. Kiu ERP cũng tự động cách phân biệt số hàng
+
nghìn/dấu thập phân mà bạn sử dụng (bạn có thể thay đổi cách cấu hình này này
+
trong phần   '''Tùy chọn).''' Nếu bạn sử
+
dụng một biểu tượng tiền tệ không có trong danh mục của Kiu ERP, hệ thống sẽ
+
không thể nhận biết số đó và có thể sai sót.
+
  
Ví dụ
+
If you are importing an excel (.xls, .xlsx) file, you can use date cells to store dates as the display of dates in excel is different from the way it is stored. That way you will be sure that the date format is correct in Kiu ERP whatever your locale date format is.
về các số được hỗ trợ (sử dụng số ba mươi hai ngàn làm ví dụ):
+
 
 +
'''Can I import numbers with currency sign (e.g.: $32.00)?'''
 +
 
 +
Yes, we fully support numbers with parenthesis to represent negative sign as well as numbers with currency sign attached to them. Kiu ERP also automatically detect which thousand/decimal separator you use (you can change those under options). If you use a currency symbol that is not known to Kiu ERP, it might not be recognized as a number though and it will crash.
 +
 
 +
Examples of supported numbers (using thirty-two thousands as an example):
 
* 32.000,00
 
* 32.000,00
 
* 32000,00
 
* 32000,00
Dòng 49: Dòng 34:
 
* $ 32.000,00
 
* $ 32.000,00
 
* (32000.00 €)
 
* (32000.00 €)
Ví dụ
+
 
về các trường hợp hệ thống không thể nhận dạng:
+
Example that will not work:
 +
 
 
* ABC 32.000,00
 
* ABC 32.000,00
 
* (32.000,00) $
 
* (32.000,00) $
'''Tôi có thể làm gì khi bảng
+
'''What can I do when the Import preview table isn't displayed correctly?'''
Xem trước nhập liệu không được hiển thị một cách chính xác?'''
+
  
Theo
+
By default the Import preview is set on commas as field separators and quotation marks as text delimiters. If your csv file does not have these settings, you can modify the File Format Options (displayed under the Browse CSV file bar after you select your file).
mặc định, bảng Xem trước nhập liệu được thiết lập trên dấu phẩy ngăn cách các
+
trường và dấu ngoặc kép làm giới hạn văn bản. Nếu tập tin csv của bạn không có
+
các thiết lập này, bạn có thể sửa đổi các Tùy chọn định dạng file (hiển thị
+
dưới thanh Browse CSV file sau khi chọn tập tin của mình).
+
  
Lưu ý
+
Note that if your CSV file has a tabulation as separator, Kiu ERP will not detect the separations. You will need to change the file format options in your spreadsheet application. See the following question.
rằng nếu file CSV có tính năng lập bảng để chia, Kiu ERP sẽ không thể phát hiện
+
sự chia tách đó. Bạn sẽ cần phải thay đổi tùy chọn định dạng tập tin trong ứng
+
dụng spreadsheet của bạn. Xem các câu hỏi sau đây.
+
  
'''Làm thế nào tôi có thể thay đổi
+
'''How can I change the CSV file format options when saving in my spreadsheet application?'''
tùy chọn định dạng tập tin CSV khi lưu trong ứng dụng bảng tính?'''
+
  
Nếu
+
If you edit and save CSV files in speadsheet applications, your computer's regional settings will be applied for the separator and delimiter. We suggest you use OpenOffice or LibreOffice Calc as they will allow you to modify all three options (in 'Save As' dialog box > Check the box 'Edit filter settings' > Save).
bạn chỉnh sửa và lưu các file CSV trong các ứng dụng speadsheet, thiết lập khu
+
vực của máy tính của bạn sẽ được áp dụng cho các dấu phân cách và giới hạn văn
+
bản. Chúng tôi đề nghị bạn sử dụng OpenOffice hay LibreOffice Calc bởi chúng
+
cho phép bạn thay đổi tất cả ba tùy chọn (trong hộp thoại “Save As”họn> C
+
hộp 'Chỉnh sửa cài đặt bộ lọc'> Save).
+
  
Microsoft
+
Microsoft Excel will allow you to modify only the encoding when saving (in 'Save As' dialog box > click 'Tools' dropdown list > Encoding tab).
Excel sẽ cho phép bạn chỉnh sửa các chỉ mã hóa khi lưu (trong hộp thoại
+
"Save As"> kích vào danh sách thả xuống 'Tools'> tab Encoding).
+
  
'''Sự khác biệt giữa ID cơ sở dữ
+
'''What's the difference between Database ID and External ID?'''
liệu và ID bên ngoài là gì?'''
+
  
Một số
+
Some fields define a relationship with another object. For example, the country of a contact is a link to a record of the 'Country' object. When you want to import such fields, Kiu ERP will have to recreate links between the different records. To help you import such fields, Kiu ERP provides 3 mechanisms. You must use one and only one mechanism per field you want to import.
trường xác định mối quan hệ với các đối tượng khác. Ví dụ, nước của một liên hệ
+
liên kết đến bản ghi của biểu tượng 'Quốc gia'. Khi bạn muốn import các trường
+
này, Kiu ERP sẽ phải tạo liên kết giữa các bản ghi khác nhau. Để hỗ trợ import
+
các trường này, Kiu ERP cung cấp 3 cơ chế. Bạn phải sử dụng một và chỉ một cơ
+
chế cho mỗi trường mà bạn muốn nhập.
+
  
Ví dụ,
+
For example, to reference the country of a contact, Kiu ERP proposes you 3 different fields to import:
để tham chiếu nước của liên hệ, Kiu ERP xuất 3 trường để import:
+
* Country: the name or code of the country
* Quốc gia: tên hoặc mã của nước đó
+
* Country/Database ID: the unique Kiu ERP ID for a record, defined by the ID postgresql column
* Quốc gia / ID cơ sở dữ liệu: ID duy nhất      Kiu ERP cho một bản ghi, xác định bởi cột ID postgresql
+
* Country/External ID: the ID of this record referenced in another application (or the .XML file that imported it)
* Quốc gia / ID ngoài: ID của bản ghi này được      tham chiếu trong một ứng dụng khác (hoặc file .XML đã từng import bản ghi      này)
+
 
Trong
 
Trong
trường hợp nước Bỉ, bạn có thể sử dụng một trong 3 cách để nhập liệu:
+
For the country Belgium, you can use one of these 3 ways to import:
* Quốc gia: Bỉ
+
* Country: Belgium
* Quốc gia / ID cơ sở dữ liệu: 21
+
* Country/Database ID: 21
* Quốc gia / ID ngoài: base.be
+
* Country/External ID: base.be
Tùy
+
According to your need, you should use one of these 3 ways to reference records in relations. Here is when you should use one or the other, according to your need:
theo nhu cầu, bạn nên sử dụng một trong 3 cách để tham chiếu bản ghi liên quan.
+
 
Đây là lúc bạn cần dùng cách này hay cách khác, tùy theo nhu cầu:
+
* Use Country: This is the easiest way when your data come from CSV files that have been created manually.
* Sử dụng tên nước: Đây là cách dễ dàng nhất      khi dữ liệu của bạn lấy từ các file CSV được tạo bằng cách thủ công.
+
* Use Country/Database ID: You should rarely use this notation. It's mostly used by developers as it's main advantage is to never have conflicts (you may have several records with the same name, but they always have a unique Database ID)
* Sử dụng Quốc gia / ID cơ sở dữ liệu: Bạn      chỉ nên sử dụng ký hiệu này một cách rất hạn chế. Chủ yếu được sử dụng bởi      các lập trình viên bởi ưu điểm chính là không bao giờ xung đột (bạn có thể      có một số bản ghi trùng tên, nhưng chúng luôn có một ID Cơ sở dữ liệu duy      nhất)
+
* Use Country/External ID: Use External ID when you import data from a third party application.
* Sử dụng Quốc gia / ID ngoài: Sử dụng ID     bên ngoài khi bạn nhập dữ liệu từ một ứng dụng của bên thứ ba.
+
When you use External IDs, you can import CSV files with the "External ID" column to define the External ID of each record you import. Then, you will be able to make a reference to that record with columns like "Field/External ID". The following two CSV files give you an example for Products and their Categories.
Khi
+
bạn sử dụng ID bên ngoài, bạn có thể nhập các file CSV có cột “ID bên ngoài để
+
xác định ID bên ngoài của mỗi bản ghi bạn nhập liệu. Sau đó, bạn có thể tham
+
chiếu đến bản ghi với các cột như “Dòng / ID ngoài". Hai tập tin CSV sau
+
đây là ví dụ về Sản phẩm và Danh mục tương ứng.
+
  
 
'''''CSV file for categories.'''''
 
'''''CSV file for categories.'''''
Dòng 117: Dòng 75:
 
'''''CSV file for Products.'''''
 
'''''CSV file for Products.'''''
  
'''Tôi có thể làm gì nếu có nhiều
+
'''What can I do if I have multiple matches for a field?'''
hơn một dữ liệu tương ứng với trường?'''
+
  
Nếu
+
If for example you have two product categories with the child name "Sellable" (ie. "Misc. Products/Sellable" & "Other Products/Sellable"), your validation is halted but you may still import your data. However, we recommend you do not import the data because they will all be linked to the first 'Sellable' category found in the Product Category list ("Misc. Products/Sellable"). We recommend you modify one of the duplicates' values or your product category hierarchy.
giả sử bạn có hai loại sản phẩm với tên “có thể bán" (tức là. . “Sản phẩm
+
khác / có thể bán” & “sản phẩm khác / có thể bán”), xác nhận của bạn phải
+
dừng lại nhưng bạn vẫn có thể nhập dữ liệu. Tuy nhiên, chúng tôi khuyên bạn
+
không nhập dữ liệu bởi vì tất cả sẽ được liên kết với danh mục ‘có thể bán’ đầu
+
tiên tìm thấy trong danh sách Danh mục sản phẩm (”Sản phẩm khác / có thể bán”)
+
. Chúng tôi khuyên bạn nên thay đổi một trong các giá trị trùng lặp hoặc trình
+
tự danh mục.
+
  
Tuy
+
However if you do not wish to change your configuration of product categories, we recommend you use make use of the external ID for this field 'Category'.
nhiên nếu bạn không muốn thay đổi cấu hình của danh mục sản phẩm, chúng tôi
+
khuyên bạn sử dụng các ID bên ngoài cho trường “Danh mục” này.
+
  
'''Làm thế nào tôi có thể nhập một
+
'''How can I import a many2many relationship field (e.g. a customer that has multiple tags)?'''
trường có nhiều liên hệ - many2many relationship field (ví dụ một khách hàng có
+
nhiều thẻ)?'''
+
  
Các
+
The tags should be separated by a comma without any spacing. For example, if you want your customer to be linked to both tags 'Manufacturer' and 'Retailer' then you will encode "Manufacturer,Retailer" in the same column of your CSV file.
thẻ nên được phân cách bằng dấu phẩy và không cần dấu cách. Ví dụ, nếu bạn muốn
+
khách hàng được liên kết với cả hai thẻ ‘nhà sản xuất’ và ‘nhà bán lẻ’, bạn cần
+
mã hóa “Nhà sản xuất, nhà bán lẻ’ trong cùng một cột của file CSV.
+
  
 
CSV file for Manufacturer, Retailer.
 
CSV file for Manufacturer, Retailer.
  
'''Làm thế nào tôi có thể nhập mối
+
'''How can I import a one2many relationship (e.g. several Order Lines of a Sales Order)?'''
quan hệ one2many (ví dụ một số khoản mục của một Đơn bán hàng)?'''
+
  
Nếu
+
If you want to import sales order having several order lines; for each order line, you need to reserve a specific row in the CSV file. The first order line will be imported on the same row as the information relative to order. Any additional lines will need an addtional row that does not have any information in the fields relative to the order. As an example, here is purchase.order_functional_error_line_cant_adpat.CSV file of some quotations you can import, based on demo data.
bạn muốn import Đơn bán hàng có một số khoản mục; với mỗi dòng khoản mục, bạn
+
cần dành một hàng riêng trong file CSV. Dòng lệnh đầu tiên sẽ được nhập vào
+
cùng hàng với các thông tin liên quan đến đơn hàng. Bất kỳ dòng bổ sung nào sẽ
+
cần một hàng bổ sung mà không có bất kỳ thông tin trong các trường liên quan
+
đến đơn hàng. Ví dụ, đây là tập tin
+
purchase.order_functional_error_line_cant_adpat.CSV của một số trích dẫn bạn có
+
thể nhập, dựa trên dữ liệu demo.
+
  
 
File for some Quotations.
 
File for some Quotations.
  
Các
+
The following CSV file shows how to import purchase orders with their respective purchase order lines:
file CSV sau đây cho thấy làm thế nào để nhập khẩu các lệnh mua với chi tiết
+
đơn đặt hàng tương ứng:
+
  
Lệnh mua với chi tiết đơn đặt hàng
+
Purchase orders with their respective purchase order lines.
tương ứng.
+
  
Các
+
The following CSV file shows how to import customers and their respective contacts:
file CSV sau đây cho thấy làm thế nào để nhập liệu khách hàng và liên hệ tương
+
ứng:
+
  
Khách hàng và liên hệ tương ứng.
+
Customers and their respective contacts.
  
'''Tôi có thể nhập nhiều lần
+
'''Can I import several times the same record?'''
cùng một bản ghi?'''
+
  
Nếu
+
If you import a file that contains one of the column "External ID" or "Database ID", records that have already been imported will be modified instead of being created. This is very usefull as it allows you to import several times the same CSV file while having made some changes in between two imports. Kiu ERP will take care of creating or modifying each record depending if it's new or not.
bạn nhập file có chứa một trong các cột “ID bên ngoài” hoặc “ID Cơ sở dữ liệu”,
+
bản ghi đã được nhập sẽ được sửa đổi thay vì được tạo mới. Điều này là rất hữu
+
ích vì nó cho phép bạn nhập nhiều lần một file CSV trong khi thay đổi giữa hai
+
lần nhập. Kiu ERP sẽ quyết định tạo mới hoặc sửa đổi mỗi bản ghi phụ thuộc vào
+
việc bản ghi là mới hay cũ.
+
  
Tính
+
This feature allows you to use the Import/Export tool of Kiu ERP to modify a batch of records in your favorite spreadsheet application.
năng này cho phép bạn sử dụng các công cụ Import / kết xuất của Kiu ERP để sửa
+
đổi một loạt các bản ghi trong ứng dụng bảng tính yêu thích.
+
  
'''Điều gì xảy ra nếu tôi không
+
'''What happens if I do not provide a value for a specific field?'''
nhập giá trị cho một trường cụ thể?'''
+
  
Nếu
+
If you do not set all fields in your CSV file, Kiu ERP will assign the default value for every non defined fields. But if you set fields with empty values in your CSV file, Kiu ERP will set the EMPTY value in the field, instead of assigning the default value.
bạn không đặt tất cả các lĩnh vực trong tập tin CSV của bạn, Kiu ERP sẽ gán giá
+
trị mặc định cho tất cả các trường không xác định. Nhưng nếu bạn thiết lập các
+
lĩnh vực với giá trị sản phẩm nào trong tập tin CSV của bạn, Kiu ERP sẽ thiết
+
lập giá trị EMPTY trong trường này, thay vì gán giá trị mặc định.
+
  
'''Làm thế nào để kết xuất / nhập
+
'''How to export/import different tables from an SQL application to Kiu ERP?'''
các bảng khác nhau từ ứng dụng SQL với Kiu ERP?'''
+
  
Nếu
+
If you need to import data from different tables, you will have to recreate relations between records belonging to different tables. (e.g. if you import companies and persons, you will have to recreate the link between each person and the company they work for).
bạn cần nhập dữ liệu từ các bảng khác nhau, bạn sẽ phải tạo lại mối quan hệ
+
giữa các bản ghi thuộc các bảng khác nhau. (Ví dụ: nếu bạn nhập công ty và
+
người, bạn sẽ phải tạo sự liên kết giữa từng cá nhân và công ty của họ).
+
  
Để
+
To manage relations between tables, you can use the "External ID" facilities of Kiu ERP. The "External ID" of a record is the unique identifier of this record in another application. This "External ID" must be unique accoss all the records of all objects, so it's a good practice to prefix this "External ID" with the name of the application or table. (like 'company_1', 'person_1' instead of '1')
quản lý mối quan hệ giữa các bảng, bạn có thể sử dụng tính năng “ID Bên ngoài”
+
của Kiu ERP. “ID bên ngoài” của một bản ghi là định danh duy nhất của bản ghi
+
này trong ứng dụng khác. “ID Bên ngoài” này phải là duy nhất giữa tất cả bản
+
ghi của mọi đối tượng, do đó, “ID Bên ngoài” nên bắt đầu bằng tên của ứng dụng
+
hoặc bảng. (Như 'COMPANY_1', 'PERSON_1' thay vì '1')
+
  
Ví dụ,
+
As an example, suppose you have a SQL database with two tables you want to import: companies and persons. Each person belong to one company, so you will have to recreate the link between a person and the company he work for. (If you want to test this example, here is a <a href="/base_import/static/csv/database_import_test.sql">dump of such a PostgreSQL database</a>)
giả sử bạn có một cơ sở dữ liệu SQL với hai bảng mà bạn muốn nhập khẩu: công ty
+
và cá nhân. Mỗi cá nhân thuộc về một công ty, vì vậy bạn sẽ phải tạo sự liên
+
kết giữa cá nhân và công ty của người đó. (Nếu bạn muốn kiểm chứng ví dụ này,
+
đây là <a href=/base_import/static/csv/database_import_test.sql”>  kho chứa cơ sở dữ liệu PostgreSQL như
+
vậy</a> )
+
  
Đầu
+
We will first export all companies and their "External ID". In PSQL, write the following command:
tiên chúng ta sẽ kết xuất tất cả các công ty và “ID ngoài” tương ứng. Trong
+
PSQL, viết câu lệnh sau:
+
'''> copy (select 'company_'||id as "External ID",company_name as "Name",'True' as "Is a Company" from companies) TO '/tmp/company.csv' with CSV HEADER''';
+
Lnh
+
SQL này sẽ tạo ra các file CSV sau đây:
+
'''ID bên ngoài, tên là một công ty'''
+
  
 
  '''company_1,Bigees,True'''
 
  '''company_1,Bigees,True'''
Dòng 229: Dòng 126:
  
 
  '''company_3,Boum,True'''
 
  '''company_3,Boum,True'''
Để tạo
+
 
ra file CSV cho các cá nhân, liên kết với các công ty, chúng tôi sẽ sử dụng các
+
To create the CSV file for persons, linked to companies, we will use the following SQL command in PSQL:
lệnh SQL sau đây trong PSQL:
+
 
 
  '''> copy (select 'person_'||id as "External ID",person_name as "Name",'False' as "Is a Company",'company_'||company_id as "Related Company/External ID" from persons) TO '/tmp/person.csv' with CSV'''
 
  '''> copy (select 'person_'||id as "External ID",person_name as "Name",'False' as "Is a Company",'company_'||company_id as "Related Company/External ID" from persons) TO '/tmp/person.csv' with CSV'''
Nó sẽ
+
 
tạo ra các file CSV sau đây:
+
It will produce the following CSV file:
'''ID bên ngoài, tên, là một Công ty, Công ty liên quan / ID ngoài'''
+
  
 
  '''person_1,Fabien,False,company_1'''
 
  '''person_1,Fabien,False,company_1'''
Dòng 244: Dòng 140:
  
 
  '''person_4,Ramsy,False,company_3'''
 
  '''person_4,Ramsy,False,company_3'''
Như
+
As you can see in this file, Fabien and Laurence are working for the Bigees company (company_1) and Eric is working for the Organi company. The relation between persons and companies is done using the External ID of the companies. We had to prefix the "External ID" by the name of the table to avoid a conflict of ID between persons and companies (person_1 and company_1 who shared the same ID 1 in the orignial database).
bạn có thể thấy trong file này, Fabien Laurence đang làm việc cho công ty
+
Bigees (COMPANY_1) Eric đang làm việc cho công ty Organi. Liên kết mối quan
+
hệ giữa cá nhân và công ty được thực hiện bằng cách sử dụng ID bên ngoài của
+
các công ty. Chúng tôi đã có tiền tố "ID bên ngoài" bằng tên của bảng
+
để tránh một cuộc xung đột của ID giữa người và công ty (PERSON_1 và COMPANY_1
+
người chia sẻ cùng một ID 1 trong các cơ sở dữ liệu orignial).
+
  
Hai
+
The two files produced are ready to be imported in Kiu ERP without any modifications. After having imported these two CSV files, you will have 4 contacts and 3 companies. (the firsts two contacts are linked to the first company). You must first import the companies and then the persons.
tập tin được sản xuất sẵn sàng để được nhập khẩu trong Kiu ERP mà không sửa đổi
+
. Sau khi nhập hai file CSV, bạn sẽ có 4 liên hệ và 3 công ty. (Hai liên hệ
+
đầu tiên được liên kết với công ty đầu tiên). Trước tiên, bạn phải nhập các
+
công ty và sau đó là người.
+

Bản hiện tại lúc 11:03, ngày 27 tháng 12 năm 2017

Frequently Asked Questions

Need to import data from an other application?

In order to re-create relationships between different records, you should use the unique identifier from the original application and map it to the ID (External ID) column in Kiu ERP. When you import an other record that links to the first one, use XXX/ID (XXX/External ID) to the original unique identifier.

The ID (External ID) will also be used to update the original import if you need to re-import modified data later, it's thus good practice to specify it whenever possible.

I cannot find the field I want to map my column to?

Kiu ERP try to find with some heuristic, based on the first ten lines of the files, the type of field for each columns inside your file. For example if you have a column only containing numbers, only the fields that are of type integer will be displayed for you to choose from. While this behaviour might be good and easy for most cases scenarios, it is also possible that it goes wrong sometimes or that you want to map your column to a field that is not proposed by default.

If that happens, you just have to check the Show all fields for completion (advanced) option, you will then be able to choose from the complete list of fields for each columns.

Where can I change the date import format?

Kiu ERP can automatically detect if a column is a date and it will try to guess the date format from a set of most used date format. While this process can work for a lot of simple date format, some exotic date format will not be recognize and it is also possible to have some confusion (day and month inverted as example) as it is difficult to guess correctly which part is the day and which one is the month in a date like '01-03-2016'.

To view which date format Kiu ERP has found from your file you can check the Date Format that is shown when clicking on Options under the file selector. If this format is incorrect you can change it to your liking using the ISO 8601 to define the format.

Note

If you are importing an excel (.xls, .xlsx) file, you can use date cells to store dates as the display of dates in excel is different from the way it is stored. That way you will be sure that the date format is correct in Kiu ERP whatever your locale date format is.

Can I import numbers with currency sign (e.g.: $32.00)?

Yes, we fully support numbers with parenthesis to represent negative sign as well as numbers with currency sign attached to them. Kiu ERP also automatically detect which thousand/decimal separator you use (you can change those under options). If you use a currency symbol that is not known to Kiu ERP, it might not be recognized as a number though and it will crash.

Examples of supported numbers (using thirty-two thousands as an example):

  • 32.000,00
  • 32000,00
  • 32.000,00
  • -32000,00
  • (32000.00)
  • $ 32.000,00
  • (32000.00 €)

Example that will not work:

  • ABC 32.000,00
  • (32.000,00) $

What can I do when the Import preview table isn't displayed correctly?

By default the Import preview is set on commas as field separators and quotation marks as text delimiters. If your csv file does not have these settings, you can modify the File Format Options (displayed under the Browse CSV file bar after you select your file).

Note that if your CSV file has a tabulation as separator, Kiu ERP will not detect the separations. You will need to change the file format options in your spreadsheet application. See the following question.

How can I change the CSV file format options when saving in my spreadsheet application?

If you edit and save CSV files in speadsheet applications, your computer's regional settings will be applied for the separator and delimiter. We suggest you use OpenOffice or LibreOffice Calc as they will allow you to modify all three options (in 'Save As' dialog box > Check the box 'Edit filter settings' > Save).

Microsoft Excel will allow you to modify only the encoding when saving (in 'Save As' dialog box > click 'Tools' dropdown list > Encoding tab).

What's the difference between Database ID and External ID?

Some fields define a relationship with another object. For example, the country of a contact is a link to a record of the 'Country' object. When you want to import such fields, Kiu ERP will have to recreate links between the different records. To help you import such fields, Kiu ERP provides 3 mechanisms. You must use one and only one mechanism per field you want to import.

For example, to reference the country of a contact, Kiu ERP proposes you 3 different fields to import:

  • Country: the name or code of the country
  • Country/Database ID: the unique Kiu ERP ID for a record, defined by the ID postgresql column
  • Country/External ID: the ID of this record referenced in another application (or the .XML file that imported it)

Trong For the country Belgium, you can use one of these 3 ways to import:

  • Country: Belgium
  • Country/Database ID: 21
  • Country/External ID: base.be

According to your need, you should use one of these 3 ways to reference records in relations. Here is when you should use one or the other, according to your need:

  • Use Country: This is the easiest way when your data come from CSV files that have been created manually.
  • Use Country/Database ID: You should rarely use this notation. It's mostly used by developers as it's main advantage is to never have conflicts (you may have several records with the same name, but they always have a unique Database ID)
  • Use Country/External ID: Use External ID when you import data from a third party application.

When you use External IDs, you can import CSV files with the "External ID" column to define the External ID of each record you import. Then, you will be able to make a reference to that record with columns like "Field/External ID". The following two CSV files give you an example for Products and their Categories.

CSV file for categories.

CSV file for Products.

What can I do if I have multiple matches for a field?

If for example you have two product categories with the child name "Sellable" (ie. "Misc. Products/Sellable" & "Other Products/Sellable"), your validation is halted but you may still import your data. However, we recommend you do not import the data because they will all be linked to the first 'Sellable' category found in the Product Category list ("Misc. Products/Sellable"). We recommend you modify one of the duplicates' values or your product category hierarchy.

However if you do not wish to change your configuration of product categories, we recommend you use make use of the external ID for this field 'Category'.

How can I import a many2many relationship field (e.g. a customer that has multiple tags)?

The tags should be separated by a comma without any spacing. For example, if you want your customer to be linked to both tags 'Manufacturer' and 'Retailer' then you will encode "Manufacturer,Retailer" in the same column of your CSV file.

CSV file for Manufacturer, Retailer.

How can I import a one2many relationship (e.g. several Order Lines of a Sales Order)?

If you want to import sales order having several order lines; for each order line, you need to reserve a specific row in the CSV file. The first order line will be imported on the same row as the information relative to order. Any additional lines will need an addtional row that does not have any information in the fields relative to the order. As an example, here is purchase.order_functional_error_line_cant_adpat.CSV file of some quotations you can import, based on demo data.

File for some Quotations.

The following CSV file shows how to import purchase orders with their respective purchase order lines:

Purchase orders with their respective purchase order lines.

The following CSV file shows how to import customers and their respective contacts:

Customers and their respective contacts.

Can I import several times the same record?

If you import a file that contains one of the column "External ID" or "Database ID", records that have already been imported will be modified instead of being created. This is very usefull as it allows you to import several times the same CSV file while having made some changes in between two imports. Kiu ERP will take care of creating or modifying each record depending if it's new or not.

This feature allows you to use the Import/Export tool of Kiu ERP to modify a batch of records in your favorite spreadsheet application.

What happens if I do not provide a value for a specific field?

If you do not set all fields in your CSV file, Kiu ERP will assign the default value for every non defined fields. But if you set fields with empty values in your CSV file, Kiu ERP will set the EMPTY value in the field, instead of assigning the default value.

How to export/import different tables from an SQL application to Kiu ERP?

If you need to import data from different tables, you will have to recreate relations between records belonging to different tables. (e.g. if you import companies and persons, you will have to recreate the link between each person and the company they work for).

To manage relations between tables, you can use the "External ID" facilities of Kiu ERP. The "External ID" of a record is the unique identifier of this record in another application. This "External ID" must be unique accoss all the records of all objects, so it's a good practice to prefix this "External ID" with the name of the application or table. (like 'company_1', 'person_1' instead of '1')

As an example, suppose you have a SQL database with two tables you want to import: companies and persons. Each person belong to one company, so you will have to recreate the link between a person and the company he work for. (If you want to test this example, here is a <a href="/base_import/static/csv/database_import_test.sql">dump of such a PostgreSQL database</a>)

We will first export all companies and their "External ID". In PSQL, write the following command:

company_1,Bigees,True
company_2,Organi,True
company_3,Boum,True

To create the CSV file for persons, linked to companies, we will use the following SQL command in PSQL:

> copy (select 'person_'||id as "External ID",person_name as "Name",'False' as "Is a Company",'company_'||company_id as "Related Company/External ID" from persons) TO '/tmp/person.csv' with CSV

It will produce the following CSV file:

person_1,Fabien,False,company_1
person_2,Laurence,False,company_1
person_3,Eric,False,company_2
person_4,Ramsy,False,company_3

As you can see in this file, Fabien and Laurence are working for the Bigees company (company_1) and Eric is working for the Organi company. The relation between persons and companies is done using the External ID of the companies. We had to prefix the "External ID" by the name of the table to avoid a conflict of ID between persons and companies (person_1 and company_1 who shared the same ID 1 in the orignial database).

The two files produced are ready to be imported in Kiu ERP without any modifications. After having imported these two CSV files, you will have 4 contacts and 3 companies. (the firsts two contacts are linked to the first company). You must first import the companies and then the persons.