WRITEOFFTEMP
Stores write-off information for each pledge or MG pledge gift.
Fields
| Field |
Field Type |
Null |
Notes |
Description |
| ID |
uniqueidentifier |
|
Default = (newid()) |
Primary Key. |
| REVENUEID |
uniqueidentifier |
|
|
FK to REVENUE |
| DATE |
datetime |
|
|
|
| POSTSTATUSCODE |
tinyint |
|
Default = 1 |
Flag used to indicate whether write-off has been posted, should be posted or needs to be posted. |
| POSTDATE |
datetime |
yes |
|
The date to use when posting the write-off record. |
| REASON |
nvarchar(300) |
|
Default = '' |
Gives further details for why this write-off was made. |
| ADDEDBYID |
uniqueidentifier |
|
|
FK to CHANGEAGENT. |
| CHANGEDBYID |
uniqueidentifier |
|
|
FK to CHANGEAGENT. |
| 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) |
yes |
CONVERT(bigint, TS) |
Numeric representation of the timestamp. |
| POSTSTATUS |
nvarchar(11) (Computed) |
yes |
CASE [POSTSTATUSCODE] WHEN 0 THEN N'Posted' WHEN 1 THEN N'Not posted' WHEN 2 THEN N'Do not post' END |
Provides a translation for the 'POSTSTATUSCODE' field. |
| REASONCODEID |
uniqueidentifier |
yes |
|
Indicates the reason this write-off was made. |
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_WRITEOFF_DATEADDED |
DATEADDED |
|
|
yes |
Triggers