Sending Company Information to the Import Wizard

The CMA_LoadCompany function receives the addresses of three structures: CMA_CTRLINFO, CMA_ACCTPART, and CMA_JOURNALENTRY. The CMA_CTRLINFO structure is the same one that was partially filled in by the CMA_FindFirstCompany or CMA_FindNextCompany function; the CMA_LoadCompany function must fill in the remaining structure members. The Import Wizard saves the CMA_CTRLINFO structure and passes its address to all of the remaining filter API functions. The remaining functions use the company information in the structure for reference purposes.

The import filter fills the CMA_ACCTPART structure with information that defines the chart of accounts used for the specified company, including optional rollups on account parts. The Import Wizard uses the information provided in the CMA_ACCTPART structure to load accounting data by calling the CMA_LoadAcctPartCode function.

The Import Wizard next gathers information about a company by calling the import filter's implementations of the following functions:

The Import Wizard follows each call to CMA_LoadCompany with repeated calls to CMA_LoadCompanyPhoneNumber until all of the telephone numbers for the company are obtained and the function returns False. One call to CMA_LoadCompany may result in multiple calls to CMA_LoadCompanyPhoneNumber. The Import Wizard then makes repeated calls to CMA_LoadCompanyStreetAddress and CMA_LoadCompanyWebAddress in a similar way.