Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 ISINACTIVE bit   Default = 0 Indicates whether the billing item is no longer offered.
 PRICETYPECODE tinyint   Default = 1 Flag indicating which kind of billing item.
 DATEADDED datetime   Default = getdate() Indicates the date this record was added.
 DATECHANGED datetime   Default = getdate() Indicates the date this record was last changed.
 TS timestamp   Timestamp.
 TSLONG bigint (Computed) CONVERT(bigint, TS) Numeric representation of the timestamp.
 DESCRIPTION nvarchar(255) (Computed) dbo.UFN_BILLINGITEM_GETDESCRIPTIONFROMPRODUCT(ID) Description of the Billing Item.
 NAME nvarchar(100) (Computed) dbo.UFN_BILLINGITEM_GETNAMEFROMPRODUCT(ID) Name of the Billing Item.
 PRICETYPE nvarchar(19) (Computed) CASE [PRICETYPECODE] WHEN 1 THEN N'Flat rate' WHEN 2 THEN N'Vary by grade level' WHEN 3 THEN N'Vary by school' END Provides a translation for the 'PRICETYPECODE' field.

Foreign Key Field Type Null Notes Description
 ID uniqueidentifier   PRODUCT.ID Primary Key.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_BILLINGITEM_DATEADDED DATEADDED    
 IX_BILLINGITEM_DATECHANGED DATECHANGED      
 PK_BILLINGITEM ID  

Trigger Name Description
 TR_BILLINGITEM_AUDIT_UPDATE
 TR_BILLINGITEM_AUDIT_DELETE
 TR_BILLINGITEM_INSERT_UPDATE

Referenced by Field
 BILLINGGENERATETRANSACTIONSCHARGEPROCESSBILLINGITEMS BILLINGITEMID
 BILLINGITEMDATES BILLINGITEMID
 BILLINGITEMPRICE BILLINGITEMID
 CHARGELINEITEM BILLINGITEMID
 RECEIVABLECREDITLINEITEM BILLINGITEMID

Entity-Relationship diagram of this table