CCINVOICEITEM

Column name Data type Char length Comment

ANALYTE_CODE

VARCHAR2

20

The related analyte code for analyte-based pricing. Part of the table's business key.

ANALYTE_COUNT

FLOAT

0

The number of analytes involved; or 0 when analyte count is irrelevant. Part of the table's business key.

ANALYTE_COUNT_DISPLAY

FLOAT

0

The value displayed in the number of analytes column. This could either display the actual number of analytes, or the job scheme's number of units.

BASE_PRICE

FLOAT

0

The price schedule's base price, or 0 for block price items.

BLOCK_SIZE

FLOAT

0

The price schedule item's block size.

CLIENT_CODE

VARCHAR2

40

The associated client code. Part of the table's business key.

CLIENT_LAB_CODE

VARCHAR2

20

The associated client's laboratory scope. Part of the table's business key.

CREATION_DATE

CHAR

8

Record's creation date as a string in YYMMDD format.

CREATION_TIME

CHAR

6

Record's creation time as a string in HHMMSS format.

CREATION_USER

VARCHAR2

255

Record was created by this user.

CURRENCY

CHAR

3

The price book's currency.

FOOTER

VARCHAR2

200

Footer notes for a line item, for invoices from edited status onwards.

HEADER

VARCHAR2

200

Header notes for a line item, for invoices from edited status onwards.

INVOICE_ITEM_NO

NUMBER

0

A generated sequence number. Part of the table's business key.

INVOICE_NO

VARCHAR2

20

The associated invoice number. Part of the table's business key.

IS_ADHOC

CHAR

1

A boolean flag to indicate manually-added line items.

IS_BASE_PRICE

CHAR

1

Line item type. It is 'B' for base price items, and 'I' for block price items. Other values are possible, but they are for internal use only. Part of the table's business key.

IS_MISC

CHAR

1

A boolean flag to indicate that the line item was added as a miscellaneous item (via the Misc tab).

JOB_CODE

VARCHAR2

20

The associated job code, or blank for combined-pricing invoices. Part of the table's business key.

JOB_INVOICE_SEQUENCE

NUMBER

0

The associated job invoice sequence, or 0 for combined-pricing invoices. Part of the table's business key.

LAB_CODE

VARCHAR2

20

Laboratory scope. Part of the table's business key.

LAST_MOD_DATE

CHAR

8

Record's last modification date as a string in YYMMDD format.

LAST_MOD_TIME

CHAR

6

Record's last modification time as a string in HHMMSS format.

LAST_MOD_USER

VARCHAR2

255

Record was last modified by this user.

NOTES

VARCHAR2

200

The price schedule's base item or block item notes (specific to client's locale, defaulting to English).

ORG_CODE

VARCHAR2

20

Organisation scope. Part of the table's business key.

PERCENT_ADJUSTMENT

NUMBER

0

The associated split's percentage adjustment (i.e. the split percentage).

PRECISION

NUMBER

0

The currency's precision.

PRICE_CODE

VARCHAR2

50

The associated price code.

PRICE_CODE_LAB_CODE

VARCHAR2

20

The associated price code's laboratory scope.

QUALIFIER

VARCHAR2

60

Used internally for disambiguation purposes only. Part of the table's business key.

SAMPLE_COUNT

FLOAT

0

The number of samples involved.

SCHEME_CODE

VARCHAR2

20

The associated scheme code; or blank for package-pricing. Part of the table's business key.

SCHEME_LAB_CODE

VARCHAR2

20

The associated scheme's laboratory scope; or blank for package-pricing. Part of the table's business key.

SCHEME_PRICE_TYPE

CHAR

1

The associated scheme's price type, of type PriceType enumeration; or blank for package-pricing.

SCHEME_TYPE

CHAR

1

The associated scheme's type, of type SchemeType enumeration.

SEQUENCE

NUMBER

0

The sort order of line items within the invoice. Numbers are not guaranteed to be consecutive.

SPLIT_CODE

VARCHAR2

20

The associated split code.

TOTAL

FLOAT

0

The line item's total, with any applicable discounts, splits, min/max prices applied.

UNIT_COUNT

FLOAT

0

The number of chargeable units/items involved. This is usually the number of involved samples or 1, depending on the price type.

UNIT_PRICE

FLOAT

0

The calculated price per unit/item, calculated from the relevant price schedule.

UP_TO

FLOAT

0

The upper boundary or range of the chargeable samples, analytes, or units for each line item. Part of the table's business key.