This set of functions creates fake company and contact data for the open source ERP System dolibarr. Currently data can be created for instances of companies and (person) contacts within these companies.
In order to demonstrate the capabilities of Dolibarr to prospects it's helpful to have a significant number of (dummy) contacts with different categories (customer, prospect, supplier; active / inactive...). This helps showing also the performance of a web hosted database with a large number of contacts.
To have realistic looking data, the faker module is used. Faker can be customized to output data in country specific format and content: company and person names, civility of persons, address format, regional city names. To localize to your needs change the faker locale.
Dolibarr can input data via .csv files. From Dolibarr it's possible to output a template file. The structure of the file (entries and order of the entries in columns) can change from version to version. To easily obtain the structure use the read_structure function.
data_structure = read_structure(TemplateFileName, dictionary_with_mapping)
- create CompanyData object
- call generate method
CG = GenerateCompanyData(outputfile_company, data_structure[0], count_company, test=test)
company_name_and_address = CG.generate()