Contains the detail lines from the specified invoice. There must be at least one detail line for every header line in the invoice.
Syntax
typedef struct tagCMA_INVOICEDETAIL {
LONG lInvoiceKey;
LONG lLineNumber;
DWORD dwCurrencyCode;
CHAR szProductID[31];
CHAR szPurchaseOrderNumber[51];
DOUBLE dQuantity;
CMACY cyUnitPrice;
DOUBLE dWeight;
CHAR szUnitofWeight;
CMACY cyFreight;
CMACY cyDiscount;
CMACY cyVATFederal;
CMACY cyVATProvincial;
CMACY cyVATCity;
CMACY cySalesTax;
CMACY cyTotalAmount;
CMACY cyUnitCost;
CHAR szProductDescription[256];
DOUBLE dBackordered;
SYSTEMTIME stDateModified;
} CMA_INVOICEDETAIL;
lInvoiceKey A unique ID for the invoice. This member is required (must not be NULL).
lLineNumber The individual number of the specified detail line.
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).
szProductID The product ID of the product being sold. For inventory or stock sales, this member is joined with the product information (see the szProductID member of the CMA_PRODUCTINFO structure). For all other sales, this is only the product ID with no associated information in the product table.
szPurchaseOrderNumber A null-terminated string that contains the purchase order number for the invoice.
dQuantity The quantity on the specified detail line.
cyUnitPrice The unit price of the product or service.
dWeight The weight of the specified detail line.
dUnitofWeight A null-terminated string that contains the unit of measurement of weight.
cyFreight The amount of freight or transport costs for the invoice detail line.
cyDiscount The payment discount (if any) for timeliness for the invoice detail line.
cyVATFederal The VAT/GST federal tax for the invoice detail line.
cyVATProvincial The VAT/GST provincial tax for the invoice detail line.
cyVATCity The VAT/GST city tax for the invoice detail line.
cySalesTax The sales tax for the invoice detail line.
cyTotalAmount The total monetary amount for the invoice detail line before freight charges and taxes are added and after any discount.
cyUnitCost The unit cost of the product.
szProductDescription A null-terminated string that contains the product description.
dBackordered The quantity of the product that has been backordered (such as the remaining quantity to deliver).
stDateModified The last date on which this record was modified in the source system. This member is required (must not be NULL).
See Also