GIFTFEEADJUSTMENT
Stores adjustments made to posted gift fees.
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| Field |
Field Type |
Null |
Notes |
Description |
| PREVIOUSAMOUNT |
money |
|
Default = 0 |
Gift fee amount prior to adjustment |
| DATE |
datetime |
yes |
|
The date of the adjustment to the gift fee record. |
| POSTDATE |
datetime |
yes |
|
The date to use when posting the adjustment to the gift fee record. |
| POSTSTATUSCODE |
tinyint |
|
Default = 1 |
Flag used to indicate if the adjustment has been posted. |
| 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. |
| REASON |
nvarchar(300) |
|
Default = '' |
Gives further details for why this adjustment was made. |
| 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. |
| TRANSACTIONPREVIOUSAMOUNT |
money |
|
Default = 0 |
|
| ORGANIZATIONPREVIOUSAMOUNT |
money |
|
Default = 0 |
|
Foreign Keys
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_GIFTFEEADJUSTMENT_BASECURRENCYID |
BASECURRENCYID |
|
|
|
| IX_GIFTFEEADJUSTMENT_BASEEXCHANGERATEID |
BASEEXCHANGERATEID |
|
|
|
| IX_GIFTFEEADJUSTMENT_DATEADDED |
DATEADDED |
|
|
yes |
| IX_GIFTFEEADJUSTMENT_DATECHANGED |
DATECHANGED |
|
|
|
| IX_GIFTFEEADJUSTMENT_ORGANIZATIONEXCHANGERATEID |
ORGANIZATIONEXCHANGERATEID |
|
|
|
| IX_GIFTFEEADJUSTMENT_REVENUEID |
REVENUEID |
|
|
|
| IX_GIFTFEEADJUSTMENT_TRANSACTIONCURRENCYID |
TRANSACTIONCURRENCYID |
|
|
|
| PK_GIFTFEEADJUSTMENT |
ID |
yes |
yes |
|
Triggers