Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 AMOUNT money   Default = 0 The amount for given write-off split.
 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.
 ORGANIZATIONAMOUNT money   Default = 0 The amount of the write-off split in organization currency.
 TRANSACTIONAMOUNT money   Default = 0 The amount of the write-off split in transaction currency.

Foreign Key Field Type Null Notes Description
 WRITEOFFID uniqueidentifier   WRITEOFF.ID FK to WRITEOFF table.
 DESIGNATIONID uniqueidentifier   DESIGNATION.ID FK to DESIGNATION table.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 BASECURRENCYID uniqueidentifier CURRENCY.ID The base currency associated with this write-off split.
 ORGANIZATIONEXCHANGERATEID uniqueidentifier CURRENCYEXCHANGERATE.ID The exchange rate used to convert from amount to organization amount.
 TRANSACTIONCURRENCYID uniqueidentifier CURRENCY.ID The transaction currency associated with this write-off split.
 BASEEXCHANGERATEID uniqueidentifier CURRENCYEXCHANGERATE.ID The exchange rate used to calculate the base amount.

Index Name Field(s) Unique Primary Clustered
 IX_WRITEOFFSPLIT_BASECURRENCYID BASECURRENCYID      
 IX_WRITEOFFSPLIT_BASEEXCHANGERATEID BASEEXCHANGERATEID      
 IX_WRITEOFFSPLIT_DATEADDED DATEADDED    
 IX_WRITEOFFSPLIT_DATECHANGED DATECHANGED      
 IX_WRITEOFFSPLIT_DESIGNATIONID DESIGNATIONID      
 IX_WRITEOFFSPLIT_ORGANIZATIONEXCHANGERATEID ORGANIZATIONEXCHANGERATEID      
 IX_WRITEOFFSPLIT_TRANSACTIONCURRENCYID TRANSACTIONCURRENCYID      
 IX_WRITEOFFSPLIT_WRITEOFFID WRITEOFFID      
 PK_WRITEOFFSPLIT ID  

Trigger Name Description
 TR_WRITEOFFSPLIT_INSERTUPDATE_CURRENCY
 TR_WRITEOFFSPLIT_AUDIT_UPDATE
 TR_WRITEOFFSPLIT_AUDIT_DELETE

Entity-Relationship diagram of this table