CMA_LoadInvoiceHeader

Provides header level information from a given invoice.

Syntax

BOOL CMA_LoadInvoiceHeader(CMA_CTRLINFO& CtrlInfo,
    CMA_INVOICEHEADER& InvoiceHeader);

CtrlInfo   The address of the CMA_CTRLINFO structure that contains information about the company for which invoice header information is to be provided. This structure was filled in by a previous call to the CMA_LoadCompany function.

InvoiceHeader   The address of the CMA_INVOICEHEADER structure the filter DLL fills in with header-level information for the invoice.

Return Values

True if additional invoices remain to be loaded; False if there are no more invoices to process.

Remarks

The Import Wizard calls the CMA_LoadInvoiceHeader function repeatedly until all invoices are loaded or the function returns False. The Import Wizard follows each call to the CMA_LoadInvoiceHeader function, with repeated calls to the CMA_LoadInvoiceDetail and CMA_LoadDueDateDetail functions. Calls to CMA_LoadInvoiceDetail continue until it returns False, which indicates that it has provided information for all the details for the specified invoice.

See Also

CMA_CTRLINFO, CMA_INVOICEHEADER, CMA_LoadCompany, CMA_LoadDueDateDetail, CMA_LoadInvoiceDetail