Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 AMOUNT money   Default = 0 The amount of the line item
 VISIBLE bit   Default = 1 Determines if the Detail is visible to the System.
 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(100)   Default = '' The description of the line item
 SEQUENCE int   Default = 0 The order that the line items are entered for the financial transaction
 TYPECODE tinyint   Default = 0 The type of the line item.
 TYPE nvarchar(11) (Computed) CASE [TYPECODE] WHEN 0 THEN N'Standard' WHEN 1 THEN N'Reversal' WHEN 2 THEN N'Application' END Provides a translation for the 'TYPECODE' field.
 POSTDATE date Post date of transaction
 POSTSTATUSCODE tinyint   Default = 1 Post status
 POSTSTATUS nvarchar(11) (Computed) CASE [POSTSTATUSCODE] WHEN 1 THEN N'Not posted' WHEN 2 THEN N'Posted' WHEN 3 THEN N'Do not post' END Provides a translation for the 'POSTSTATUSCODE' field.
 DELETEDON datetime Date and time line items was deleted.
 BASEAMOUNT money   Default = 0 The amount of the line item in base currency
 ORGAMOUNT money   Default = 0 The amount of the line item in organization currency

Foreign Key Field Type Null Notes Description
 FINANCIALTRANSACTIONID uniqueidentifier   FINANCIALTRANSACTION.ID The FK to the FinancialTransaction Table.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 REVERSEDLINEITEMID uniqueidentifier FINANCIALTRANSACTIONLINEITEM.ID Gives the reversed line item that this reversal line itme points to.
 SOURCELINEITEMID uniqueidentifier FINANCIALTRANSACTIONLINEITEM.ID Gives the line item this application is from, for instance a payment or credit.
 TARGETLINEITEMID uniqueidentifier FINANCIALTRANSACTIONLINEITEM.ID Gives the line item this application is applied to, for instance a charge.

Index Name Field(s) Unique Primary Clustered
 IX_FINANCIALTRANSACTIONLINEITEM_DATEADDED DATEADDED    
 IX_FINANCIALTRANSACTIONLINEITEM_DATECHANGED DATECHANGED      
 IX_FINANCIALTRANSACTIONLINEITEM_FINANCIALTRANSACTIONID_TYPECODE FINANCIALTRANSACTIONID, TYPECODE      
 PK_FINANCIALTRANSACTIONLINEITEM ID  

Trigger Name Description
 TR_FINANCIALTRANSACTION_LINEITEM_NONEWLINEITEMSONDELETEDTRANSACTION
 TR_FINANCIALTRANSACTIONLINEITEM_REVERSEDLINEITEMID
 TR_FINANCIALTRANSACTIONLINEITEM_AUDIT_UPDATE
 TR_FINANCIALTRANSACTIONLINEITEM_AUDIT_DELETE
 TR_FINANCIALTRANSACTIONLINEITEM_DELETE
 TR_FINANCIALTRANSACTION_LINEITEM_TOTAL_IUD
 TR_FINANCIALTRANSACTIONLINEITEM_POSTDATE_REQUIRED_IUD
 TR_FINANCIALTRANSACTIONLINEITEM_LOCKEDFIELDS_IUD
 TR_FINANCIALTRANSACTION_LINEITEM_APPLICATIONSVALID

Referenced by Field
 CHARGELINEITEM ID
 CHARGELINEITEMRESPONSIBILITY FINANCIALTRANSACTIONLINEITEMID
 JOURNALENTRY FINANCIALTRANSACTIONLINEITEMID
 RECEIVABLECREDITLINEITEM ID

Entity-Relationship diagram of this table