WRITEOFFREASONCODE (4.0SP17)

Stores write-off reason codes.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

CODE

nvarchar(10)

false

''

DESCRIPTION

nvarchar(50)

false

''

ACTIVE

bit

false

1

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_WRITEOFFREASONCODE_DATEADDED

DATEADDED

False

False

True

IX_WRITEOFFREASONCODE_DATECHANGED

DATECHANGED

False

False

False

PK_WRITEOFFREASONCODE

ID

True

True

False

UC_WRITEOFFREASONCODE_CODE

CODE

True

False

False

Triggers
Trigger Name Description

TR_WRITEOFFREASONCODE_AUDIT_ETLDELETEDID

TR_WRITEOFFREASONCODE_AUDIT_UPDATE

TR_WRITEOFFREASONCODE_AUDIT_DELETE

Referenced by
Referenced by Field

BATCHPLEDGEWRITEOFF

REASONCODEID

PLEDGEWRITEOFFPROCESS

REASONCODEID

RECURRINGGIFTWRITEOFF

REASONCODEID

WRITEOFF_EXT

REASONCODEID