CMA_LoadDueDateDetail

Provides the Import Wizard with information about expected payment dates for the specified invoice.

Syntax

BOOL CMA_LoadDueDateDetail(CMA_CTRLINFO& CtrlInfo,
    CMA_INVOICEHEADER& InvoiceHeader,
    CMA_DUEDATEDETAIL& DueDateDetail);

CtrlInfo   The address of the CMA_CTRLINFO structure that contains information about the company for which detailed invoice due date 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.

DueDateDetail   The address of the CMA_DUEDATEDETAIL structure the filter DLL fills with due-date information for the invoice.

Return Values

True if additional due dates for the specified invoice remain to be retrieved from the data file; False if there are no more due dates to process.

Remarks

There must be at least one due-date detail line entered for each invoice entered by means of the CMA_LoadInvoiceHeader function. If the invoice has a payment schedule with multiple payments, this will cause more than one due date detail line for each invoice.

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

See Also

CMA_CTRLINFO, CMA_DUEDATEDETAIL, CMA_INVOICEHEADER, CMA_LoadCompany, CMA_LoadInvoiceHeader