CMA_PARTCODE

Defines a part code. An array of these structures is included in the CMA_ACCTPARTCODE structure, which a filter DLL fills in when the Import Wizard calls the DLL's CMA_LoadAcctPartCode and CMA_LoadDetail functions.

Syntax

typedef struct tagCMA_PARTCODE {
    CHAR    szCode[256];
} CMA_PARTCODE;

szCode   A null-terminated string that contains the part code (for example, "10"). This member is required (must not be NULL).

Remarks

When the Import Wizard calls the CMA_LoadAcctPartCode function, szCode[0] is the account part code being defined; szCode[1] is the first rollup code for this account part code; szCode[2] is the second rollup code; and so on.

When loading rollup codes, szCode[0] is the rollup code; szCode[1] and beyond are not used because you cannot have rollups on other rollups.

When the Import Wizard calls the CMA_LoadDetail function, szCode contains all the account parts for the detail line minus any rollups. After rollups have been defined, they need not be placed in detail transactions. For more information, see the topic, CMA_LoadDetail.

See Also

CMA_LoadAcctPartCode, CMA_LoadDetail, CMA_ACCTPARTCODE