CMA_LoadInvoiceStreetAddress

Provides the Import Wizard with the street address or addresses associated with the specified invoice.

Syntax

BOOL CMA_LoadInvoiceStreetAddress(
    CMA_CTRLINFO& CtrlInfo,
    CMA_INVOICEHEADER& InvoiceHeader,
    CMA_STREETADDRESS& StreetAddress);

CtrlInfo   The address of the CMA_CTRLINFO structure whose szDataPath member specifies the data path for the company data file. 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 information from the invoice. This structure was filled in by a previous call to the CMA_LoadInvoiceHeader function.

StreetAddress   The address of the CMA_STREETADDRESS structure the filter DLL fills in with street address information.

Return Values

True if additional street addresses remain to be retrieved from the data file; False if there are no more street addresses to process.

Remarks

The CMA_LoadInvoiceStreetAddress function will be used only if the invoice loaded in the previous call to CMA_LoadInvoiceHeader has a street address that was entered during invoice entry, and this street address is not contained in the customer records imported in CMA_LoadOrganizationStreetAddress. If this invoice does not have a custom street address, the CMA_LoadInvoiceStreetAddress function returns False.

See Also

CMA_CTRLINFO, CMA_LoadCompany, CMA_LoadInvoiceHeader, CMA_INVOICEHEADER, CMA_LoadOrganizationStreetAddress, CMA_STREETADDRESS