CMA_LoadInvoiceDetail

Provides the Import Wizard with detailed line information about the specified invoice.

Syntax

BOOL CMA_LoadInvoiceDetail(CMA_CTRLINFO& CtrlInfo,
    CMA_INVOICEHEADER& InvoiceHeader,
    CMA_INVOICEDETAIL& InvoiceDetail);

CtrlInfo   The address of the CMA_CTRLINFO structure that contains information about the company for which detailed invoice 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 that contains the header-level invoice information from the invoice. This structure was filled in by a previous call to the CMA_LoadInvoiceHeader function.

InvoiceDetail   The address of the CMA_INVOICEDETAIL structure the filter DLL fills in with detailed invoice information.

Return Values

True if additional detail line information for this invoice remains; False if there are no more invoice detail lines to process.

Remarks

There must be at least one invoice detail line entered for each invoice entered by means of the CMA_LoadInvoiceHeader function.

The Import Wizard follows each call to the CMA_LoadInvoiceHeader function with repeated calls to the CMA_LoadInvoiceDetail function. Calls to CMA_LoadInvoiceDetail continue until it returns False, which indicates that it has provided information for all the invoice detail lines for the invoice.

See Also

CMA_CTRLINFO, CMA_INVOICEDETAIL, CMA_INVOICEHEADER, CMA_LoadCompany, CMA_LoadInvoiceHeader