CMA_JOURNALDETAIL

Contains detailed information about an entry from the specified accounting system data file. A filter DLL receives this structure when the Import Wizard calls the DLL's CMA_LoadEntry and CMA_LoadDetail functions. The CMA_LoadEntry function identifies the entry for which the DLL is to provide details, and the CMA_LoadDetail function fills in the structure with the appropriate details.

Syntax

typedef struct tagCMA_JOURNALDETAIL {
    CHAR    szDescription[256];
    DWORD    dwCurrencyCode;
    CMACY    cyDebit;
    CMACY    cyCredit;
    DOUBLE    dQuantity;
    CHAR    szInvoiceNumber[41];
} CMA_JOURNALDETAIL;

szDescription   A null-terminated string that contains a description of the details being provided.

dwCurrencyCode   A value that identifies the currency code of the data being passed to the filter. This can be any of the defined values in aacommon.h (see list of values at the end of this document). This member is required when the fDualCurrency member of the CMA_CTRLINFO structure is True (must not be NULL).

cyDebit   The debit amount for the transaction. This member is typically used for either the asset or expense side of the transaction.

cyCredit   The credit amount for the transaction. This member is typically used for the liability, equity, or expense side of the transaction.

dQuantity   An optional quantity related to the specified detail line within the transaction. For example, if this detail line corresponds to the sale of 30 plumb trees, dQuantity would be 30, and either dDebit or dCredit would be the sale amount for the plumb trees.

szInvoiceNumber   A null-terminated string that contains the invoice number for the detail line currently displayed, if the detail line is the result of an invoice.

See Also

CMA_CTRLINFO, CMA_LoadDetail, CMA_LoadEntry, CMA_LoadPackage, CMA_PACKAGE, Currency Identifiers